Skip to content
Development
Command

/issue-linkage

**Navigation**: [<- Thread Resolution](thread-resolution.md) | [Step 6 Hub](../6-complete.md) | [Next: Summary ->](summary.md)

From plugin
claude-night-market
343162 skills60 agents162 commands1 MCP
> /plugin marketplace add athola/claude-night-market

Command definition

issue-linkage.md

Step 6.4: Issue Linkage & Closure

> **Navigation**: [<- Thread Resolution](thread-resolution.md) | [Step 6 Hub](../6-complete.md) | [Next: Summary ->](summary.md)

**Purpose**: Analyze whether this PR addresses any open issues and close/comment on them accordingly.

---

6.4 Issue Linkage & Closure

**Analyze whether this PR addresses any open issues and close/comment on them accordingly.**

**Fetch Open Issues:**

# Get all open issues for the repository
gh issue list --state open --json number,title,body,labels --limit 50

**Analyze Issue Coverage:**

For each open issue, analyze whether the PR's changes address it:

# Get PR changed files and commit messages
gh pr view --json files,commits -q '{files: .files[].path, commits: .commits[].messageHeadline}'

# Compare against issue requirements:
# - Extract acceptance criteria from issue body
# - Check if changed files relate to issue scope
# - Review commit messages for issue references

**Classification:** | Status | Criteria | Action | |--------|----------|--------| | **Fully Addressed** | All acceptance criteria met, all required changes made | Comment and Close | | **Partially Addressed** | Some criteria met, some work remaining | Comment with follow-up details | | **Not Related** | PR doesn't touch issue scope | Skip |

---

Comment on Fully Addressed Issues

gh issue comment ISSUE_NUMBER --body "$(cat <<'EOF'
## Addressed in PR #PR_NUMBER

This issue has been fully addressed by the linked pull request.

**Changes made:**
- [List specific changes that address the issue]

**Files modified:**
- `path/to/file.py`
- `path/to/another.py`

Closing this issue. The fix will be available after PR merge.
EOF
)"

# Close the issue
gh issue close ISSUE_NUMBER --reason completed

---

Comment on Partially Addressed Issues

gh issue comment ISSUE_NUMBER --body "$(cat <<'EOF'
## Partially Addressed in PR #PR_NUMBER

This PR addresses some aspects of this issue but additional work is needed.

**What was addressed:**
- [List completed items]

**What still needs to be done (follow-up PR):**
- [ ] [Remaining task 1]
- [ ] [Remaining task 2]
- [ ] [Remaining task 3]

**Suggested next steps:**
1. Create follow-up branch from main after this PR merges
2. Address remaining items listed above
3. Reference this issue in the follow-up PR

Keeping this issue open until fully resolved.
EOF
)"

---

> **Next**: [Summary](summary.md)

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other commands on claude-night-market.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command