mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
lock-prs: Fix syntax error
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
for num in $cmd; do
|
||||
if [ "$(gh api repos/$REPO/issues/$num --jq '.active_lock_reason'| wc -c)" -le 1 ]; then
|
||||
if ! gh pr view --repo "$REPO" --json labels -q '.labels[].name' $num|grep -qE "^Stale$"
|
||||
if ! gh pr view --repo "$REPO" --json labels -q '.labels[].name' $num|grep -qE "^Stale$"; then
|
||||
echo "Locking pull request $num"
|
||||
gh pr lock --repo "$REPO" --reason "resolved" "$num"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user