pr-check: Change else to elif

This commit is contained in:
bbhtt
2025-05-25 12:34:33 +05:30
parent 1d379defa4
commit 8c138f63c0
+3 -1
View File
@@ -85,7 +85,7 @@ jobs:
if [ "$BLOCKED" -eq 0 ] && [ "$has_label" != "true" ]; then
echo "Marking as awaiting-review"
gh pr edit "$PR_NUM" --add-label "awaiting-review" --remove-label "blocked" || true
else
elif [ "$BLOCKED" -eq 1 ]; then
echo "Marking as blocked"
gh pr edit "$PR_NUM" --add-label "blocked" --remove-label "awaiting-review"
if ! comment_exists; then
@@ -94,6 +94,8 @@ jobs:
else
echo "Found comment, skipping commenting"
fi
else
echo "Nothing to do"
fi
done
env: