You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a -e/--editor flag to both `gh issue edit` and `gh pr edit` that
opens the system editor pre-filled with the current title and body.
The first line is the title and the remaining text is the body,
matching the UX of `gh issue create --editor` and `gh pr create --editor`.
This flag:
- Skips the interactive field-selection prompts and metadata fetch
- Is mutually exclusive with --body and --body-file
- Respects GH_EDITOR, config editor, and prefer_editor_prompt settings
- Does not support multiple issues (same restriction as interactive mode)
- When enabled via prefer_editor_prompt config, silently yields to
explicit flags (--body, --add-label, etc.) so scripted usage works
Closes#11108
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
cmd.Flags().StringSliceVar(&opts.Editable.Projects.Remove, "remove-project", nil, "Remove the issue from projects by `title`")
180
205
cmd.Flags().StringVarP(&opts.Editable.Milestone.Value, "milestone", "m", "", "Edit the milestone the issue belongs to by `name`")
181
206
cmd.Flags().BoolVar(&removeMilestone, "remove-milestone", false, "Remove the milestone association from the issue")
207
+
cmd.Flags().BoolVarP(&opts.EditorMode, "editor", "e", false, "Skip prompts and open the text editor to write the title and body in.\nThe first line is the title and the remaining text is the body.")
0 commit comments