Skip to content

Commit f02ca8d

Browse files
committed
Allow skipping ai-checks based on label
Only for maintainers
1 parent 21a0545 commit f02ca8d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/unittests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
steps:
2525
- name: Get the number of commits in the PR
2626
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
27-
if: github.event_name == 'pull_request'
27+
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ai-check')
2828
- name: Checkout Scapy
2929
uses: actions/checkout@v6
3030
with:
3131
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
32-
if: github.event_name == 'pull_request'
32+
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ai-check')
3333
- name: AI trailer reminder
3434
run: bash ./.config/ci/check_commits.sh
35-
if: github.event_name == 'pull_request'
35+
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ai-check')
3636
spdx:
3737
name: Check SPDX identifiers
3838
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)