lock-prs: Fix syntax error

This commit is contained in:
bbhtt
2024-11-02 09:45:42 +05:30
parent 10aac87c56
commit d163baee71
+1 -1
View File
@@ -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