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