chore(cmd/joj3): add ref to attrs
All checks were successful
submodules sync / sync (push) Successful in 47s
build / build (push) Successful in 1m37s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-11-21 07:24:07 -05:00
parent b7a579ffed
commit 1d4b95bf81
GPG Key ID: D47306D7062CDA9D

View File

@ -62,6 +62,7 @@ func getSlogAttrs(csvPath string) (attrs []slog.Attr) {
slog.String("actorID", env.Attr.ActorID),
slog.String("repository", env.Attr.Repository),
slog.String("sha", env.Attr.Sha),
slog.String("ref", env.Attr.Ref),
}
// if csvPath is empty, just return
if csvPath == "" {
@ -98,6 +99,7 @@ func getSlogAttrs(csvPath string) (attrs []slog.Attr) {
slog.String("actorID", env.Attr.ActorID),
slog.String("repository", env.Attr.Repository),
slog.String("sha", env.Attr.Sha),
slog.String("ref", env.Attr.Ref),
}
}
}