Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/do-not-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Do Not Merge"

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
do-not-merge:
runs-on: ubuntu-latest
steps:
- name: Block merge if do-not-merge label is present
env:
LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
if echo "$LABELS" | grep -q 'do-not-merge'; then
Comment thread
sachaudh marked this conversation as resolved.
echo "::error::PR has the 'do-not-merge' label. Remove it before merging."
exit 1
fi
Loading