1.7 KiB
1.7 KiB
Close GitHub Issue with Verification
Properly close a GitHub issue with summary comment and verification.
Instructions
-
Identify the issue:
- Ask: "Which issue number do you want to close?"
- Or search if user provides keywords:
gh issue list --search "keyword"
-
View the issue:
gh issue view {number} --json title,body,labels,state,number,author,assignees- Show issue details to user
- Confirm this is the correct issue to close
-
Verify resolution:
- Ask: "What was done to resolve this?"
- Ask: "Any follow-up tasks needed?"
- If follow-up: Suggest creating new issues with
/gh-create-issue
-
Add closing comment:
gh issue comment {number} --body "Resolution summary here -cc"- CRITICAL: Always include "-cc" signature on its own line
- Include what was done, how it was tested, and any relevant details
-
Close the issue:
gh issue close {number} -
Verify closure:
gh issue view {number} --json title,state,number- Confirm status is "CLOSED"
- Show closing comment to user
Important Reminders
- NEVER forget the "-cc" signature in comments
- ALWAYS add a closing comment before closing (documents resolution)
- VERIFY the issue is truly resolved before closing
- CREATE follow-up issues if needed before closing
Definition of Done
- Correct issue identified and viewed
- Resolution verified with user
- Closing comment added with summary
- Comment includes "-cc" signature
- Issue status changed to CLOSED
- Closure verified with
gh issue view --json - Follow-up tasks created if needed
- User sees confirmation of closure