Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/cmd/discussion/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
cmd := &cobra.Command{
Use: "create [flags]",
Short: "Create a new discussion (preview)",
Long: heredoc.Doc(`
Long: heredoc.Docf(`
Create a new GitHub Discussion in a repository.

With '--title', '--body', and '--category', a discussion is created non-interactively.
With %[1]s--title%[1]s, %[1]s--body%[1]s (or %[1]s--body-file%[1]s), and %[1]s--category%[1]s, a discussion is created non-interactively.
Omitting any of these flags triggers interactive prompts when connected to a terminal.
`),
`, "`"),
Example: heredoc.Doc(`
# Create interactively
$ gh discussion create
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/discussion/discussion.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewCmdDiscussion(f *cmdutil.Factory) *cobra.Command {
`),
Example: heredoc.Doc(`
$ gh discussion list
$ gh discussion create --category "General" --title "Hello"
$ gh discussion create --category "General" --title "Hello" --body "Hello World!"
$ gh discussion view 123
`),
Annotations: map[string]string{
Expand Down
Loading