pr-check: Fix syntax error

This commit is contained in:
bbhtt
2025-12-24 18:14:42 +05:30
parent 1e64936398
commit 10f0593b13
+2 -1
View File
@@ -287,6 +287,7 @@ jobs:
echo "Nothing to do"
start_build
fi
if label_exists_any "pr-check-blocked" "blocked" \
&& ! comment_exists_any "$BUILD_SUCCESS_COMMENT" \
&& [ "$(echo "$PR_COMMENTS" | grep -E -c 'Test build.*failed')" -gt 5 ]; then
@@ -294,6 +295,7 @@ jobs:
gh pr comment "$PR_NUM" --body "$LOCKED_COMMENT" || true
gh pr lock "$PR_NUM" || true
fi
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" \
@@ -305,7 +307,6 @@ jobs:
--add-label "awaiting-review" \
--remove-label "awaiting-changes" || true
fi
fi
echo
echo "=== Finished checking PR https://github.com/flathub/flathub/pull/$PR_NUM ==="