Skip to content

Commit 08108a3

Browse files
authored
Merge pull request #325 from OffchainLabs/design-approved-check
Block merging if `design-approved` label missing
2 parents 0deab11 + 1d24dcd commit 08108a3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/merge-checks.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Merge Checks
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
types: [synchronize, opened, reopened, labeled, unlabeled]
7+
8+
jobs:
9+
design-approved-check:
10+
if: ${{ !contains(github.event.*.labels.*.name, 'design-approved') }}
11+
name: Design Approved Check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check for design-approved label
15+
run: |
16+
echo "Pull request is missing the 'design-approved' label"
17+
echo "This workflow fails so that the pull request cannot be merged"
18+
exit 1
19+
20+

0 commit comments

Comments
 (0)