mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
lock-prs: Exclude stale-blocked label
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
|
||||
for num in $list; do
|
||||
if [ "$(gh api repos/"$GH_REPO"/issues/"$num" --jq '.locked')" = "false" ]; then
|
||||
if ! gh pr view --json labels -q '.labels[].name' "$num"|grep -qE "^(Stale|leave-open)$"; then
|
||||
if ! gh pr view --json labels -q '.labels[].name' "$num"|grep -qE "^(Stale|stale-blocked|leave-open)$"; then
|
||||
echo "Locking pull request $num"
|
||||
gh pr lock --reason "resolved" "$num"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user