Skip to content

Commit

Permalink
Create pr-require-label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-CH authored Apr 15, 2024
1 parent 6a154a4 commit 7ed985c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pr-require-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Enforce PR labels

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]
jobs:
enforce-label:
name: Enforce label
runs-on: ubuntu-latest
steps:
- if: toJson(github.event.pull_request.labels) == '[]'
run: exit 1

0 comments on commit 7ed985c

Please sign in to comment.