pr-check: Relax lock condition

This commit is contained in:
bbhtt
2025-11-02 17:47:44 +05:30
parent 8693393f6f
commit f81985837a
+1 -2
View File
@@ -249,8 +249,7 @@ jobs:
echo "Nothing to do"
start_build
fi
if [ "$BLOCKED" -eq 1 ] \
&& label_exists_any "pr-check-blocked" "blocked" \
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
echo "PR is blocked and too many failing builds. Locking"