/gaac:update-related-issues <issue-or-pr-number>from gaac
Updates related issues after a PR merge — accepts a PR or issue number, finds the merged PR, and closes or notifies dependent issues via a script.
Ships in gaac. Installing the plugin adds it to Claude Code.
Update related issues after a PR has been merged. This is a convenience wrapper that accepts either a PR number or an issue number.
gh repo view --json nameWithOwner -q '.nameWithOwner'/update-related-issues 123 # PR number
/update-related-issues 42 # Issue number (finds associated PR)
Note: Input must be a numeric PR or issue number (no leading #).
First, check if the argument is a PR or an issue:
gh pr view $1 --json number,state,mergedAt 2>/dev/null
If this succeeds, the argument is a PR number - proceed to Phase 2.
If the PR check fails, the argument is likely an issue number.
Try to find a merged PR that resolves this issue:
# Search for merged PRs that resolve this issue
gh pr list --state merged --search "resolves #$1" --json number,title --limit 5
# Also try alternative patterns
gh pr list --state merged --search "fixes #$1" --json number,title --limit 5
gh pr list --state merged --search "closes #$1" --json number,title --limit 5
If a merged PR is found, use that PR number. If multiple are found, use the most recent.
If no merged PR is found, inform the user:
No merged PR found that resolves issue #$1.
To update related issues, please provide the PR number directly:
/update-related-issues <pr-number>
Or merge a PR that includes "Resolves #$1" in its description first.
Once a valid merged PR number is determined, call the update script:
bash "${CLAUDE_PLUGIN_ROOT}/skills/github-manager/scripts/update-related-issues.sh" \
--pr <pr-number>
Report the actions taken:
| Action | Count |
|---|---|
| Issues closed | N |
| Related issues notified | N |
| Dependent issues notified | N |
| Cascade closures | N |
If there were errors or warnings, list them for the user to review.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub sihaoliu/gaac --plugin gaac10 commands in this plugin
/cancel-loop-codex-reviewCancel Loop with Codex ReviewCancel active loop-with-codex-review/close-pr/close-prMerge a pull request with validation and update related issues/git-commit/git-commitCreate a git commit following GAAC format with proper tags and issue references/loop-with-codex-reviewLoop with Codex ReviewStart iterative loop with Codex review/plan-arch-to-issues/plan-arch-to-issuesConvert implementation plans into test-driven GitHub issues/refine-spec-to-arch/refine-spec-to-archRefine draft specifications into architecture documents and implementation plansOther plugins' commands for the same job