Skip to content

Commit

Permalink
feat(verb): add support for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arsham committed Apr 22, 2022
1 parent 45d509c commit 76600ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commit/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func GroupFromCommit(msg string) Group {
verb = "Enhancements"
case "upgrade":
verb = "Upgrades"
case "ci":
verb = "CI"
case "style":
verb = "Style"
default:
Expand Down
1 change: 1 addition & 0 deletions commit/commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func TestGroupFromCommit(t *testing.T) {
"enhancement": {line: "enhancement something", want: commit.NewGroup("Enhancements", "", "something", false)},
"enhancements": {line: "enhancements something", want: commit.NewGroup("Enhancements", "", "something", false)},
"style": {line: "style something", want: commit.NewGroup("Style", "", "something", false)},
"ci": {line: "ci: change something", want: commit.NewGroup("CI", "", "change something", false)},
"comma sep": {line: "fix(git,commit): something", want: commit.NewGroup("Fix", "git,commit", "something", false)},
"hyphen subj": {line: "fix(git-commit): something", want: commit.NewGroup("Fix", "git-commit", "something", false)},
}
Expand Down

0 comments on commit 76600ad

Please sign in to comment.