Skip to content

Commit

Permalink
feat(ci): add github action to block merging by labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeekens committed Jan 21, 2025
1 parent ca01f2b commit 3b8bb15
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/merge-blocking-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Label Checker

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
merge_group:
types: [checks_requested]

jobs:
check_labels:
if: github.event_name == 'pull_request'
name: Prevent merge with blocking labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
none_of: 'πŸ‘ πŸ‘¨β€πŸŽ¨ Status: UI/UX Review,πŸ– πŸ– Status: On Hold,πŸ›‘ Status: blocked,🚧 Status: WIP'
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3b8bb15

Please sign in to comment.