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 207fbc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/require_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ 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 '::error::This PR is labeled as "do not merge", remove the label to make this check pass.'
exit 1

0 comments on commit 207fbc8

Please sign in to comment.