mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 15:28:56 +00:00
pr-check: Fix syntax error
This commit is contained in:
@@ -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 ==="
|
||||
|
||||
Reference in New Issue
Block a user