mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
feat: auto close
This commit is contained in:
parent
3bcccb6a46
commit
e2e145816b
1 changed files with 1 additions and 6 deletions
|
|
@ -53,9 +53,4 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# Close only if a PR exists for this issue number; otherwise leave it open.
|
||||
if gh -R "$REPO" pr list --state open --search "issue #$ISSUE_NUMBER" --json number --jq 'length' | grep -qv '^0$'; then
|
||||
gh -R "$REPO" issue close "$ISSUE_NUMBER" -c "Processed by STVIZ automation and a PR was opened."
|
||||
else
|
||||
echo "No PR detected for issue #$ISSUE_NUMBER; leaving issue open."
|
||||
fi
|
||||
gh -R "$REPO" issue close "$ISSUE_NUMBER" -c "Processed by STVIZ automation and a PR was opened."
|
||||
|
|
|
|||
Loading…
Reference in a new issue