Skip to content

Commit 54d9595

Browse files
committed
fix: Use official angular commit types
1 parent 29893aa commit 54d9595

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

model/commits.go

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,36 @@ func (c CommitType) String() string {
1212
}
1313

1414
const (
15-
CommitTypeFix CommitType = "fix"
16-
CommitTypeFeat CommitType = "feat"
15+
CommitTypeBuild CommitType = "build"
16+
CommitTypeChore CommitType = "chore"
17+
CommitTypeCI CommitType = "ci"
1718
CommitTypeDocs CommitType = "docs"
18-
CommitTypeStyle CommitType = "style"
19-
CommitTypeRefactor CommitType = "refactor"
19+
CommitTypeFeat CommitType = "feat"
20+
CommitTypeFix CommitType = "fix"
2021
CommitTypePerf CommitType = "perf"
22+
CommitTypeRefactor CommitType = "refactor"
23+
CommitTypeStyle CommitType = "style"
2124
CommitTypeTest CommitType = "test"
22-
CommitTypeChore CommitType = "chore"
2325
)
2426

2527
var (
2628
// Based on https://www.conventionalcommits.org/
27-
// TODO allow config to choose between these lists
2829
TypeConventionalCommit []CommitType = []CommitType{
29-
CommitTypeFix,
3030
CommitTypeFeat,
31+
CommitTypeFix,
3132
}
32-
// Based on https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type
33+
34+
// Based on https://github.com/angular/angular/blob/main/contributing-docs/commit-message-guidelines.md
3335
TypeAngular []CommitType = []CommitType{
34-
CommitTypeFix,
35-
CommitTypeFeat,
36+
CommitTypeBuild,
37+
CommitTypeCI,
3638
CommitTypeDocs,
37-
CommitTypeStyle,
38-
CommitTypeRefactor,
39+
CommitTypeFeat,
40+
CommitTypeFix,
3941
CommitTypePerf,
42+
CommitTypeRefactor,
43+
CommitTypeStyle,
4044
CommitTypeTest,
41-
CommitTypeChore,
4245
}
4346
)
4447

0 commit comments

Comments
 (0)