Files
gh-yebot-rad-cc-plugins-plu…/commands/gh-close-issue.md
2025-11-30 09:07:55 +08:00

1.7 KiB

Close GitHub Issue with Verification

Properly close a GitHub issue with summary comment and verification.

Instructions

  1. Identify the issue:

    • Ask: "Which issue number do you want to close?"
    • Or search if user provides keywords: gh issue list --search "keyword"
  2. 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
  3. 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
  4. 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
  5. Close the issue:

    gh issue close {number}
    
  6. 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