chore(deps): bump metamask/github-tools/.github/workflows/add-item-to-project.yml from 56a094ccb23085b708eacbfbcc0b4fdf024491c0 to 26bff79d1c862b8b3bb53c556cc6a4731420c291 #19817
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: 'Check for PR labels that block merging' | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - labeled | |
| - unlabeled | |
| merge_group: | |
| jobs: | |
| ensure-blocking-pr-labels-absent: | |
| if: ${{ github.event_name != 'merge_group' }} # Skip this step for merge_group events | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| steps: | |
| - name: Checkout and setup environment | |
| uses: MetaMask/action-checkout-and-setup@v2 | |
| with: | |
| is-high-risk-environment: false | |
| - name: Run command | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| if (context.payload.pull_request.labels.some((label) => label.name === 'DO-NOT-MERGE')) { | |
| core.setFailed( | |
| "PR cannot be merged because it contains the label 'DO-NOT-MERGE'." | |
| ); | |
| } |