feat: list group keywords
This commit is contained in:
parent
f5ba04b8e7
commit
64ae632003
|
@ -129,9 +129,13 @@ func parseMsg(confRoot, confName, msg string) (conf Conf, group string, err erro
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
groupKeywords := []string{"joj"}
|
||||
for _, groupKeyword := range groupKeywords {
|
||||
if strings.Contains(
|
||||
strings.ToLower(conventionalCommit.Description), "joj") {
|
||||
group = "joj"
|
||||
strings.ToLower(conventionalCommit.Description), groupKeyword) {
|
||||
group = groupKeyword
|
||||
break
|
||||
}
|
||||
}
|
||||
slog.Debug("conf loaded", "conf", conf)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user