WIP: commit msg parser #39

Closed
周赵嘉程521432910016 wants to merge 24 commits from commit-parser into master
Showing only changes of commit e2b280b70c - Show all commits

View File

@ -98,8 +98,16 @@ func commitMsgToConf() (conf Conf, err error) {
if err != nil {
return
}
file := "conf.toml"
msg := commit.Message
slog.Debug("commit msg to conf", "msg", msg)
if msg == "" {
conf, err = parseConfFile(file)
return
}
line := strings.Split(msg, "\n")[0]
words := strings.Fields(line)