diff --git a/command/issue.go b/command/issue.go index 6abd2714b..853c0dcd6 100644 --- a/command/issue.go +++ b/command/issue.go @@ -323,7 +323,6 @@ func issueCreate(cmd *cobra.Command, args []string) error { interactive := title == "" || body == "" if interactive { - // TODO handle tb.Action tb, err := titleBodySurvey(cmd, title, body, templateFiles) if err != nil { return errors.Wrap(err, "could not collect title and/or body") @@ -332,7 +331,8 @@ func issueCreate(cmd *cobra.Command, args []string) error { action = tb.Action if tb.Action == CancelAction { - // TODO print something + fmt.Fprintln(cmd.ErrOrStderr(), "Discarding.") + return nil } diff --git a/command/pr_create.go b/command/pr_create.go index 122314b8f..b2b5caab3 100644 --- a/command/pr_create.go +++ b/command/pr_create.go @@ -98,7 +98,7 @@ func prCreate(cmd *cobra.Command, _ []string) error { action = tb.Action if action == CancelAction { - // TODO print about discarding + fmt.Fprintln(cmd.ErrOrStderr(), "Discarding.") return nil }