From 896886f3a699d5765953e87d625d3833faf26b10 Mon Sep 17 00:00:00 2001 From: Gabriel <10530980+gpotter2@users.noreply.github.com> Date: Wed, 22 Jul 2026 11:40:03 +0200 Subject: [PATCH] Allow skipping ai-checks based on label Only for maintainers --- .github/workflows/unittests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 81366c6cc86..f8db6d41b9c 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -24,15 +24,15 @@ jobs: steps: - name: Get the number of commits in the PR run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ai-check') - name: Checkout Scapy uses: actions/checkout@v6 with: fetch-depth: ${{ env.PR_FETCH_DEPTH }} - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ai-check') - name: AI trailer reminder run: bash ./.config/ci/check_commits.sh - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ai-check') spdx: name: Check SPDX identifiers runs-on: ubuntu-latest