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 985a2db commit 4e18a85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ 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') == false) && (contains(env.LABEL_NAMES, 'status: blocked') == false)) || ((contains(env.LABEL_NAMES, 'status: pending review') == false) && contains(env.LABEL_NAMES, 'status: in progress') && (contains(env.LABEL_NAMES, 'status: blocked') == false)) || ((contains(env.LABEL_NAMES, 'status: pending review') == false) && (contains(env.LABEL_NAMES, 'status: in progress') == false) && contains(env.LABEL_NAMES, 'status: blocked'))) == false"
run: |
echo "$LABEL_NAMES"
echo "PR must have exactly one of these labels: ['status: pending review', 'status: in progress', 'status: blocked']."
exit 1

0 comments on commit 4e18a85

Please sign in to comment.