Skip to content

Commit

Permalink
Add PR check for do-not-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis committed Jul 5, 2023
1 parent 96c7984 commit d95c204
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Checks

on:
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
check-do-not-merge-tag:
name: Check for do-not-merge tag
runs-on: ubuntu-latest
steps:
- name: Check for do-not-merge label
run: |
if grep -q "do-not-merge" ${{ github.event.pull_request.labels }}; then
echo "Error: PR contains do-not-merge label"
exit 1
fi

0 comments on commit d95c204

Please sign in to comment.