Skip to content

chore(deps): bump metamask/github-tools/.github/workflows/add-item-to-project.yml from 56a094ccb23085b708eacbfbcc0b4fdf024491c0 to 1036dfdb18a0630f32340908b26e32a1fe4aaa42 #20312

chore(deps): bump metamask/github-tools/.github/workflows/add-item-to-project.yml from 56a094ccb23085b708eacbfbcc0b4fdf024491c0 to 1036dfdb18a0630f32340908b26e32a1fe4aaa42

chore(deps): bump metamask/github-tools/.github/workflows/add-item-to-project.yml from 56a094ccb23085b708eacbfbcc0b4fdf024491c0 to 1036dfdb18a0630f32340908b26e32a1fe4aaa42 #20312

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'."
);
}