fix(discussion create): remove success message from stderr
Only print the discussion URL to stdout. No additional output on stderr. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bdceb21248
commit
47cabb26ae
1 changed files with 1 additions and 6 deletions
|
|
@ -153,14 +153,9 @@ func createRun(opts *CreateOptions) error {
|
|||
|
||||
discussion, err := c.Create(repo, input)
|
||||
if err != nil {
|
||||
return fmt.Errorf("creating discussion: %w", err)
|
||||
return fmt.Errorf("failed to create discussion: %w", err)
|
||||
}
|
||||
|
||||
if opts.IO.IsStdoutTTY() {
|
||||
cs := opts.IO.ColorScheme()
|
||||
fmt.Fprintf(opts.IO.ErrOut, "%s Created discussion #%d\n",
|
||||
cs.SuccessIcon(), discussion.Number)
|
||||
}
|
||||
fmt.Fprintln(opts.IO.Out, discussion.URL)
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue