Skip to content

docs: add examples to gh issue close help text#12830

Merged
BagToad merged 2 commits intotrunkfrom
add-issue-close-duplicate-example
Mar 4, 2026
Merged

docs: add examples to gh issue close help text#12830
BagToad merged 2 commits intotrunkfrom
add-issue-close-duplicate-example

Conversation

@BagToad
Copy link
Member

@BagToad BagToad commented Mar 4, 2026

Follow-up to #12811. Adds examples to gh issue close --help covering:

  • Basic close
  • Close with comment
  • Close as duplicate (--duplicate-of)
  • Close with reason

Add examples for closing issues, closing with a comment, closing as
duplicate, and closing with a reason.

Co-authored-by: Copilot <[email protected]>
@BagToad BagToad requested a review from a team as a code owner March 4, 2026 03:45
@BagToad BagToad requested review from babakks and Copilot March 4, 2026 03:45
@BagToad BagToad requested a review from williammartin March 4, 2026 03:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds usage examples to gh issue close --help so users can discover common close workflows (basic close, close with comment, close as duplicate, close with reason).

Changes:

  • Add Example help text for gh issue close using heredoc.Doc
  • Include examples for --comment, --duplicate-of, and --reason usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@babakks babakks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a minor suggestion.

@BagToad BagToad enabled auto-merge (squash) March 4, 2026 14:46
@BagToad BagToad merged commit d594c5e into trunk Mar 4, 2026
11 checks passed
@BagToad BagToad deleted the add-issue-close-duplicate-example branch March 4, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants