Skip to content

Commit

Permalink
Merge pull request ethereum#325 from OffchainLabs/design-approved-check
Browse files Browse the repository at this point in the history
Block merging if `design-approved` label missing
  • Loading branch information
tsahee committed Jun 11, 2024
2 parents 0deab11 + 1d24dcd commit 08108a3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/merge-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Merge Checks

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

jobs:
design-approved-check:
if: ${{ !contains(github.event.*.labels.*.name, 'design-approved') }}
name: Design Approved Check
runs-on: ubuntu-latest
steps:
- name: Check for design-approved label
run: |
echo "Pull request is missing the 'design-approved' label"
echo "This workflow fails so that the pull request cannot be merged"
exit 1

0 comments on commit 08108a3

Please sign in to comment.