pr-check: Only mark awaiting-review if build is successful

This commit is contained in:
bbhtt
2026-01-26 07:21:07 +05:30
parent 69666c8a6e
commit 0f786997a6
+8 -1
View File
@@ -297,7 +297,14 @@ jobs:
gh pr edit "$PR_NUM" \
--add-label "awaiting-changes" \
--remove-label "awaiting-review" >/dev/null 2>&1 || true
elif label_exists_any "awaiting-changes" && ! label_exists_any "awaiting-upstream" "work-in-progress" "pr-check-blocked" "blocked" && [ "$PR_THREAD_COUNT" -eq 0 ]; then
elif label_exists_any "awaiting-changes" \
&& ! label_exists_any \
"awaiting-upstream" \
"work-in-progress" \
"pr-check-blocked" \
"blocked" \
&& if ! comment_exists_any "$BUILD_SUCCESS_COMMENT" \
&& [ "$PR_THREAD_COUNT" -eq 0 ]; then
echo "No review comments, ensuring awaiting-review label"
gh pr edit "$PR_NUM" \
--add-label "awaiting-review" \