pr-check: Drop failing build count

This commit is contained in:
bbhtt
2025-11-02 17:43:41 +05:30
parent 8afc2b18be
commit 8693393f6f
+1 -1
View File
@@ -252,7 +252,7 @@ jobs:
if [ "$BLOCKED" -eq 1 ] \
&& label_exists_any "pr-check-blocked" "blocked" \
&& ! comment_exists_any "$BUILD_SUCCESS_COMMENT" \
&& [ "$(echo "$PR_COMMENTS" | grep -E -c 'Test build.*failed')" -gt 10 ]; then
&& [ "$(echo "$PR_COMMENTS" | grep -E -c 'Test build.*failed')" -gt 5 ]; then
echo "PR is blocked and too many failing builds. Locking"
gh pr comment "$PR_NUM" --body "$LOCKED_COMMENT"
gh pr lock "$PR_NUM" || true