Skip to content

Commit 0251f24

Browse files
authored
feat: add a script to check for kernel public api changes (#980)
* feat: add a script to check for kernel public api changes * feat: more robust parsing and address comments
1 parent 2f7c452 commit 0251f24

2 files changed

Lines changed: 495 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Check Public API
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "**/*.md"
7+
- ".github/**"
8+
- "scripts/**"
9+
- "*.json"
10+
- "*.nix"
11+
- "*.lock"
12+
- ".gitignore"
13+
- ".gitmodules"
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
check-public-api:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Install uv
31+
run: pip install uv
32+
33+
- name: Check public API
34+
env:
35+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
36+
run: |
37+
uv run --script scripts/check_public_api.py --base-ref "$BASE_SHA"

0 commit comments

Comments
 (0)