diff --git a/cmd/joj3/conf.go b/cmd/joj3/conf.go index 3afa8ad..8f647cb 100644 --- a/cmd/joj3/conf.go +++ b/cmd/joj3/conf.go @@ -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)