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()),