Skip to content

Commit f84c8ca

Browse files
committed
fix(ci): simplify blocking-label error message
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
1 parent f3882b6 commit f84c8ca

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/pr-hold-gate.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ jobs:
2727
labels=$(gh pr view "$PR_URL" --json labels -q '.labels[].name')
2828
for label in "${blocking_labels[@]}"; do
2929
if grep -qxF "$label" <<< "$labels"; then
30-
if [ "$label" = hold ]; then
31-
howto="run /hold cancel"
32-
else
33-
howto="remove it from the PR"
34-
fi
35-
echo "::error::Blocking label '$label' is present. To allow merge, $howto."
30+
echo "::error::Blocking label '$label' is present. Remove it to allow merge (e.g., /hold cancel for hold)."
3631
exit 1
3732
fi
3833
done

0 commit comments

Comments
 (0)