Skip to content

Commit

Permalink
Adds gh action to check for DNM labels
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzyfriday committed Jan 28, 2025
1 parent e2e1465 commit 475d689
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check-dnm-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Check for DNM labels

on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
- labeled
- unlabeled

jobs:
check-for-DNM:
runs-on: ubuntu-latest
steps:

- name: Fail if PR is DNM
if: contains(github.event.pull_request.labels.*.name, 'do-not-merge/hold') || contains(github.event.pull_request.labels.*.name, 'do-not-merge/work-in-progress')
run: |
echo "This PR has a DNM label."
exit 1

0 comments on commit 475d689

Please sign in to comment.