Skip to content

Commit

Permalink
Merge pull request #1777 from rpsene/main
Browse files Browse the repository at this point in the history
Check Mergeable by Label
  • Loading branch information
wmat authored Dec 16, 2024
2 parents 067b86b + 536d53d commit a8395e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check-ready-to-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Check Mergeable by Label'

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

jobs:
fail-by-label:
if: contains(github.event.pull_request.labels.*.name, 'Pending Ratification')
runs-on: ubuntu-latest
steps:
- name: Fail if PR is labeled "Pending Ratification"
run: |
echo "Error: This PR is labeled as 'Pending Ratification' and cannot be merged."
exit 1

0 comments on commit a8395e7

Please sign in to comment.