Skip to content

Commit

Permalink
update statuses list
Browse files Browse the repository at this point in the history
  • Loading branch information
laruh committed Dec 16, 2024
1 parent 8092009 commit bd64fd3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ jobs:
- name: Check PR labels
env:
LABEL_NAMES: ${{ toJson(github.event.pull_request.labels.*.name) }}
if: "((contains(env.LABEL_NAMES, 'status: pending review') == contains(env.LABEL_NAMES, 'status: in progress') == contains(env.LABEL_NAMES, 'status: blocked')))"
if: "(
(contains(env.LABEL_NAMES, 'status: pending review') && !contains(env.LABEL_NAMES, 'status: in progress') && !contains(env.LABEL_NAMES, 'status: blocked'))
||
(!contains(env.LABEL_NAMES, 'status: pending review') && contains(env.LABEL_NAMES, 'status: in progress') && !contains(env.LABEL_NAMES, 'status: blocked'))
||
(!contains(env.LABEL_NAMES, 'status: pending review') && !contains(env.LABEL_NAMES, 'status: in progress') && contains(env.LABEL_NAMES, 'status: blocked'))
)"
run: |
echo "PR must have exactly one of these labels: ['status: pending review', 'status: in progress', 'status: blocked']."
exit 1

0 comments on commit bd64fd3

Please sign in to comment.