Skip to content

Commit

Permalink
Force labels on pull-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jan 26, 2024
1 parent 8db220d commit d04e151
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Force pull-requests label(s)

on:
pull_request:
types: [opened, labeled, unlabeled]
jobs:
pr-has-label:
name: Will be skipped if labelled
runs-on: ubuntu-latest
if: ${{ join(github.event.pull_request.labels.*.name, ', ') == '' }}
steps:
- run: |
echo 'Pull-request must have at least one label'
exit 1

0 comments on commit d04e151

Please sign in to comment.