WIP: commit msg parser #39

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

View File

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