mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-04-27 15:07:43 +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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# Close only if a PR exists for this issue number; otherwise leave it open.
|
gh -R "$REPO" issue close "$ISSUE_NUMBER" -c "Processed by STVIZ automation and a PR was opened."
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue