pr-check: Remove pr-check-blocked label when resolved

This commit is contained in:
bbhtt
2025-06-30 08:47:26 +05:30
parent b665f2050d
commit 0397fee1be

View File

@@ -123,9 +123,15 @@ jobs:
echo "BLOCKED is set to $BLOCKED"
if [ "$BLOCKED" -eq 0 ] && ! label_exists_any "awaiting-changes" "awaiting-upstream" "blocked" "reviewed-waiting"; then
echo "Marking as awaiting-review"
gh pr edit "$PR_NUM" --add-label "awaiting-review" --remove-label "pr-check-blocked" || true
if [ "$BLOCKED" -eq 0 ]; then
if label_exists_any "pr-check-blocked"; then
echo "Removing pr-check-blocked label"
gh pr edit "$PR_NUM" --remove-label "pr-check-blocked" || true
fi
if ! label_exists_any "awaiting-changes" "awaiting-upstream" "blocked" "reviewed-waiting"; then
echo "Marking as awaiting-review"
gh pr edit "$PR_NUM" --add-label "awaiting-review" --remove-label "pr-check-blocked" || true
fi
start_build
elif [ "$BLOCKED" -eq 1 ]; then
echo "Marking as blocked"