feat(cmd/joj3): set env before stages

This commit is contained in:
张泊明518370910136 2025-02-01 20:31:56 -05:00
parent 4e84031e84
commit 0f40da5efa
GPG Key ID: D47306D7062CDA9D

View File

@ -53,7 +53,8 @@ func mainImpl() (err error) {
}
env.Attr.CommitMsg = commitMsg
confPath, confStat, conventionalCommit, err := internalConf.GetConfPath(
confFileRoot, confFileName, fallbackConfFileName, commitMsg, tag)
confFileRoot, confFileName, fallbackConfFileName, commitMsg, tag,
)
if err != nil {
slog.Error("get conf path", "error", err)
return err
@ -88,6 +89,7 @@ func mainImpl() (err error) {
// run stages
groups := internalConf.MatchGroups(conf, conventionalCommit)
env.Attr.Groups = strings.Join(groups, ",")
env.Set()
_, forceQuitStageName, err := stage.Run(
conf,
groups,