Skip to content

Commit

Permalink
fix(cli): don't break into TUI if scope empty in otherwise valid CC
Browse files Browse the repository at this point in the history
for example: 'fix: a typo' would have triggered the TUI even though it shouldn't have.
  • Loading branch information
SKalt committed Nov 8, 2020
1 parent fa69e04 commit 36801d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ var Cmd = &cobra.Command{
cc, _ = parser.ParseAsMuchOfCCAsPossible(message)
valid := cc.MinimallyValid() &&
cc.ValidCommitType(cfg.CommitTypes) &&
cc.ValidScope(cfg.Scopes)
(cc.ValidScope(cfg.Scopes) || cc.Scope == "")
if !valid {
choice := make(chan string, 1)
m := initialModel(choice, cc, cfg)
Expand Down

0 comments on commit 36801d7

Please # to comment.