Skip to content

Commit

Permalink
ci: prevent merge of PRs with do-not-merge label
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Meyer <[email protected]>
  • Loading branch information
burgerdev and katexochen committed Nov 18, 2024
1 parent 3a82af8 commit 18923b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/require_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ jobs:
feature
documentation
no changelog
do-not-merge:
if: ${{ contains(github.event.pull_request.labels.*.name, 'do not merge') }}
runs-on: ubuntu-22.04
steps:
- name: prevent merge
run: |
echo -n "::error "
tee "${GITHUB_STEP_SUMMARY}" <<'EOF'
This PR is labeled as `do not merge`, remove the label to make this check pass.
EOF
exit 1

0 comments on commit 18923b5

Please sign in to comment.