Provisioning: Require author name (#104789)

This commit is contained in:
Ryan McKinley
2025-04-30 19:33:21 +03:00
committed by GitHub
parent 821b44182e
commit 2df2b169cc
@@ -371,9 +371,13 @@ func (g *GoGitRepo) maybeCommit(ctx context.Context, message string) error {
return nil
}
opts := &git.CommitOptions{}
opts := &git.CommitOptions{
Author: &object.Signature{
Name: "grafana",
},
}
sig := repository.GetAuthorSignature(ctx)
if sig != nil {
if sig != nil && sig.Name != "" {
opts.Author = &object.Signature{
Name: sig.Name,
Email: sig.Email,