From 4b32e3f2159bec8e7e1d1e9c514062d8fd3f5c64 Mon Sep 17 00:00:00 2001 From: rista404 Date: Thu, 23 Apr 2020 12:20:54 +0200 Subject: [PATCH] Enable interactive mode only if flags aren't passed --- command/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/issue.go b/command/issue.go index 2f4e145af..4bc57e926 100644 --- a/command/issue.go +++ b/command/issue.go @@ -383,7 +383,7 @@ func issueCreate(cmd *cobra.Command, args []string) error { action := SubmitAction - interactive := title == "" || body == "" + interactive := !cmd.Flags().Changed("title") || !cmd.Flags().Changed("body") if interactive { tb, err := titleBodySurvey(cmd, title, body, defaults{}, templateFiles)