mirror of
https://github.com/Drop-OSS/flathub-app-bin.git
synced 2026-01-30 20:55:22 +01:00
pr-check: Remove pr-check-blocked label when resolved
This commit is contained in:
12
.github/workflows/pr-check.yml
vendored
12
.github/workflows/pr-check.yml
vendored
@@ -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