Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Add usage examples to gh gist edit command#12710

Merged
BagToad merged 1 commit intotrunkcli/cli:trunkfrom
kw/document-gist-edit-file-replacementcli/cli:kw/document-gist-edit-file-replacementCopy head branch name to clipboard
Feb 17, 2026
Merged

Add usage examples to gh gist edit command#12710
BagToad merged 1 commit intotrunkcli/cli:trunkfrom
kw/document-gist-edit-file-replacementcli/cli:kw/document-gist-edit-file-replacementCopy head branch name to clipboard

Conversation

@BagToad
Copy link
Member

@BagToad BagToad commented Feb 17, 2026

Add a cobra Example string to the gist edit command showing common operations: interactive selection, editing in default editor, editing a specific file, replacing file content from a local file, adding/removing files, and changing the description.

The motivation comes from user feedback that it was difficult to discover how to edit a gist non-interactively without searching through PRs.

Note

I have enabled auto-merge ℹ️

Closes #8943

Add a cobra Example string to the gist edit command showing common
operations: interactive selection, editing in default editor, editing a
specific file, replacing file content, adding/removing files, and
changing the description.

Closes #8943

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 17, 2026 19:38
@BagToad BagToad requested a review from a team as a code owner February 17, 2026 19:38
@BagToad BagToad enabled auto-merge February 17, 2026 19:40
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

This PR adds comprehensive usage examples to the gh gist edit command to improve discoverability of non-interactive editing capabilities. The change addresses user feedback (issue #8943) where users found it difficult to discover how to edit gists non-interactively without searching through PRs.

Changes:

  • Added Example field to the gh gist edit command showing seven common usage patterns including interactive selection, editing in default editor, editing specific files, replacing file content from local files, adding/removing files, and changing descriptions
  • Added import for github.com/MakeNowJust/heredoc package to format the examples

💡 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

@BagToad BagToad merged commit 40dcfd6 into trunk Feb 17, 2026
31 checks passed
@BagToad BagToad deleted the kw/document-gist-edit-file-replacement branch February 17, 2026 20:35
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.

Add Code examples for the gh commands in Docs & Man page

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.