Skip to content

Commit

Permalink
Block merging if design-approved label missing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacolvin0 committed Jun 4, 2024
1 parent 0deab11 commit 1d24dcd
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 1d24dcd

Please sign in to comment.