From 2cd89b747c7c255df9197132fcdf04d0c8cd2ff3 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 25 Apr 2025 10:16:54 -0600 Subject: feat: record the author of the new sparkle --- app/controllers/sparkles/init.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/sparkles/init.go') diff --git a/app/controllers/sparkles/init.go b/app/controllers/sparkles/init.go index 9efcac8..98bf43d 100644 --- a/app/controllers/sparkles/init.go +++ b/app/controllers/sparkles/init.go @@ -7,6 +7,7 @@ import ( "github.com/xlgmokha/x/pkg/mapper" "github.com/xlgmokha/x/pkg/serde" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/domain" + "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/key" ) func init() { @@ -15,6 +16,7 @@ func init() { if err != nil { log.WithFields(r.Context(), log.Fields{"error": err}) } + sparkle.Author = key.CurrentUser.From(r.Context()) return sparkle }) } -- cgit v1.2.3