lock-prs: Exclude stale-blocked label

This commit is contained in:
bbhtt
2026-03-19 01:12:10 +05:30
parent 4045950042
commit c2d156a852
+1 -1
View File
@@ -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