Skip to content

Commit

Permalink
Merge pull request #11 from CodeYourFuture/daslerr-patch-1
Browse files Browse the repository at this point in the history
Adds workflow file to check for labels on PRs
  • Loading branch information
reshamas authored Nov 30, 2024
2 parents b024b4f + a4a6ea6 commit d924e6b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check-pr-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Require label for category before merge


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

jobs:
check-for-label:
runs-on: ubuntu-latest
steps:
- name: Labels not added
if: >
contains(github.event.pull_request.labels.*.name, 'Breaking-Changes') == false &&
contains(github.event.pull_request.labels.*.name, 'Bug-Fixes') == false &&
contains(github.event.pull_request.labels.*.name, 'Documentation') == false &&
contains(github.event.pull_request.labels.*.name, 'Feature') == false &&
contains(github.event.pull_request.labels.*.name, 'Chore') == false
run: |
echo "This PR can't be merged, because it does not have a release category label. See release_notes.md"
exit 1

0 comments on commit d924e6b

Please sign in to comment.