Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ready-label-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check Ready Label
# https://stackoverflow.com/a/71504928/29403906
on:
pull_request:
branches: [ main , 'release/*' ]
types:
- labeled
- unlabeled
- opened
- reopened

jobs:
check-ready-label:
if: "!contains(github.event.pull_request.labels.*.name, 'ready')"
runs-on: ubuntu-latest
steps:
- name: Fail if ready label has not been applied to PR
run: |
echo "::error::The PR is not labeled as 'ready'"
exit 1
Loading