Use refs/pull/N/head for AI review checkout (unblock /ai-review on merged PRs) #785
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Gate | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, labeled, unlabeled] | |
| permissions: {} | |
| jobs: | |
| ci-gate: | |
| name: CI Gate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Require ready-for-ci label on PRs | |
| if: >- | |
| github.event_name == 'pull_request' | |
| && !contains(github.event.pull_request.labels.*.name, 'ready-for-ci') | |
| run: | | |
| echo "::error::The 'ready-for-ci' label is required to run CI tests." | |
| echo "Add the label to trigger CI." | |
| exit 1 |