Skip to content

Commit 8906857

Browse files
Fix issue label checker (#409)
At some point, the needs review label was renamed from `lifecycle/needs review` to `lifecycle/needs-review`. Signed-off-by: Lucy Menon <[email protected]>
1 parent 4918fcd commit 8906857

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/IssueLabelChecker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
readarray -d $'\0' lifecycles < <(gh issue view ${{ github.event.issue.number }} --json labels -q '[.labels[] | .name | select(startswith("lifecycle/"))] | join("\u0000")' | head -c -1)
1919
if [[ ${#lifecycles[@]} -ne 1 ]]; then
2020
if [[ ${#lifecycles[@]} -ge 1 ]]; then
21-
echo 'Too many lifecycle labels; replacing all with `lifecycle/needs review`'
21+
echo 'Too many lifecycle labels; replacing all with `lifecycle/needs-review`'
2222
fi
2323
commands=()
2424
for label in "${lifecycles[@]}"; do
25-
if [[ "$label" != "lifecycle/needs review" ]]; then
25+
if [[ "$label" != "lifecycle/needs-review" ]]; then
2626
echo "Removing label ${label}"
2727
commands+=("--remove-label" "${label}")
2828
fi
2929
done
3030
echo 'Adding `lifecycle/needs review`'
31-
commands+=("--add-label" "lifecycle/needs review")
31+
commands+=("--add-label" "lifecycle/needs-review")
3232
gh issue edit ${{ github.event.issue.number }} "${commands[@]}"
3333
fi
3434
env:

0 commit comments

Comments
 (0)