mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 16:28:52 +00:00
pr-check: Remove pr-check-blocked label when resolved
This commit is contained in:
@@ -123,9 +123,15 @@ jobs:
|
||||
|
||||
echo "BLOCKED is set to $BLOCKED"
|
||||
|
||||
if [ "$BLOCKED" -eq 0 ] && ! label_exists_any "awaiting-changes" "awaiting-upstream" "blocked" "reviewed-waiting"; then
|
||||
echo "Marking as awaiting-review"
|
||||
gh pr edit "$PR_NUM" --add-label "awaiting-review" --remove-label "pr-check-blocked" || true
|
||||
if [ "$BLOCKED" -eq 0 ]; then
|
||||
if label_exists_any "pr-check-blocked"; then
|
||||
echo "Removing pr-check-blocked label"
|
||||
gh pr edit "$PR_NUM" --remove-label "pr-check-blocked" || true
|
||||
fi
|
||||
if ! label_exists_any "awaiting-changes" "awaiting-upstream" "blocked" "reviewed-waiting"; then
|
||||
echo "Marking as awaiting-review"
|
||||
gh pr edit "$PR_NUM" --add-label "awaiting-review" --remove-label "pr-check-blocked" || true
|
||||
fi
|
||||
start_build
|
||||
elif [ "$BLOCKED" -eq 1 ]; then
|
||||
echo "Marking as blocked"
|
||||
|
||||
Reference in New Issue
Block a user