pr-check: Fix relabeling

This commit is contained in:
bbhtt
2025-12-24 18:10:28 +05:30
parent 5ed9e1f9c6
commit daf3ab4b77
+2 -4
View File
@@ -294,14 +294,12 @@ jobs:
gh pr comment "$PR_NUM" --body "$LOCKED_COMMENT" || true
gh pr lock "$PR_NUM" || true
fi
if label_exists_any "awaiting-review"; then
echo "PR_THREAD_COUNT=$PR_THREAD_COUNT"
if [ "$PR_THREAD_COUNT" -gt 0 ]; then
if label_exists_any "awaiting-review" && [ "$PR_THREAD_COUNT" -gt 0 ]; then
echo "Has awaiting-review label and review comments, marking as awaiting-changes"
gh pr edit "$PR_NUM" \
--add-label "awaiting-changes" \
--remove-label "awaiting-review" || true
else
elif label_exists_any "awaiting-changes" && [ "$PR_THREAD_COUNT" -eq 0 ]; then
echo "No review comments, ensuring awaiting-review label"
gh pr edit "$PR_NUM" \
--add-label "awaiting-review" \