| name: PR Metadata Check |
| |
| on: |
| pull_request: |
| types: |
| - synchronize |
| - opened |
| - reopened |
| - labeled |
| - unlabeled |
| - edited |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| do-not-merge: |
| name: Prevent Merging |
| runs-on: ubuntu-24.04 |
| steps: |
| - name: Checkout |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| |
| - name: Set up Python |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
| with: |
| python-version: 3.12 |
| cache: pip |
| cache-dependency-path: scripts/requirements-actions.txt |
| |
| - name: Install Python dependencies |
| run: | |
| pip install -r scripts/requirements-actions.txt --require-hashes |
| |
| - name: Run the check script |
| env: |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| run: | |
| python -u scripts/ci/do_not_merge.py -p "${{ github.event.pull_request.number }}" |