Skip to content

Commit

Permalink
[MIRROR] Block merging of PRs flagged for test merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SuhEugene committed Oct 10, 2023
1 parent a0fd08b commit 4391873
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/testmerge-blocker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Test Merge Blocker"

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

jobs:
testmerge-blocker:
name: Enforce Test Merge Label
runs-on: ubuntu-latest
steps:
- name: Enforce Test Merge Label
if: contains(github.event.pull_request.labels.*.name, 'Test Merge') && !contains(github.event.pull_request.labels.*.name, 'Test Merge Passed')
run: |
echo "Pull request is labeled for Test Merge and has not been flagged as Test Merge Passed."
echo "The test merge must pass, or the label removed, before this PR can be merged."
exit 1

0 comments on commit 4391873

Please sign in to comment.