diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-25 10:16:54 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-25 10:16:54 -0600 |
| commit | 2cd89b747c7c255df9197132fcdf04d0c8cd2ff3 (patch) | |
| tree | 53e8dffe9dd73f4471f073bcd0199dc9361fad70 /app/controllers/sparkles/init.go | |
| parent | 00b0381dfccab2ddff7de04933fdb11b32695faf (diff) | |
feat: record the author of the new sparkle
Diffstat (limited to 'app/controllers/sparkles/init.go')
| -rw-r--r-- | app/controllers/sparkles/init.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 }) } |
