summaryrefslogtreecommitdiff
path: root/app/controllers/sparkles/init.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 10:16:54 -0600
committermo khan <mo@mokhan.ca>2025-04-25 10:16:54 -0600
commit2cd89b747c7c255df9197132fcdf04d0c8cd2ff3 (patch)
tree53e8dffe9dd73f4471f073bcd0199dc9361fad70 /app/controllers/sparkles/init.go
parent00b0381dfccab2ddff7de04933fdb11b32695faf (diff)
feat: record the author of the new sparkle
Diffstat (limited to 'app/controllers/sparkles/init.go')
-rw-r--r--app/controllers/sparkles/init.go2
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
})
}