feat: list group keywords
All checks were successful
build / build (push) Successful in 1m15s
build / trigger-build-image (push) Successful in 5s

This commit is contained in:
张泊明518370910136 2024-10-02 19:24:30 -04:00
parent f5ba04b8e7
commit 64ae632003
GPG Key ID: D47306D7062CDA9D

View File

@ -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