From 66666e30b7097a35e2dce9f45bc39db03d33c6d5 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Sun, 19 Dec 2021 23:36:03 +0100 Subject: [PATCH] fix: take care of -n here --- cli/recipe/release.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/recipe/release.go b/cli/recipe/release.go index ab696f3a..0a9b2be2 100644 --- a/cli/recipe/release.go +++ b/cli/recipe/release.go @@ -121,7 +121,7 @@ You may invoke this command in "wizard" mode and be prompted for input: var createTagOptions git.CreateTagOptions createTagOptions.Message = internal.TagMessage - if !internal.Commit { + if !internal.Commit && !internal.NoInput { prompt := &survey.Confirm{ Message: "git commit changes also?", } @@ -130,7 +130,7 @@ You may invoke this command in "wizard" mode and be prompted for input: } } - if !internal.Push { + if !internal.Push && !internal.NoInput { prompt := &survey.Confirm{ Message: "git push changes also?", } @@ -149,7 +149,7 @@ You may invoke this command in "wizard" mode and be prompted for input: logrus.Fatal(err) } - if internal.CommitMessage == "" { + if internal.CommitMessage == "" && !internal.NoInput { prompt := &survey.Input{ Message: "commit message", Default: fmt.Sprintf("chore: publish new %s version", internal.GetBumpType()),