Skip to content

Commit

Permalink
Merge pull request #208 from l3montree-dev/fix/autoConfig
Browse files Browse the repository at this point in the history
add Author to git commit
  • Loading branch information
timbastin authored Nov 4, 2024
2 parents 9f13d85 + a1cd841 commit 8a0fe49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/core/integrations/integration_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing/object"
gitssh "github.com/go-git/go-git/v5/plumbing/transport/ssh"
)

Expand Down Expand Up @@ -84,7 +85,13 @@ func setupAndPushPipeline(sshAuthKeys *gitssh.PublicKeys, projectName string, te
if err != nil {
return fmt.Errorf("could not add file: %v", err)
}
_, err = w.Commit("Add devguard pipeline template", &git.CommitOptions{})
_, err = w.Commit("Add devguard pipeline template", &git.CommitOptions{
Author: &object.Signature{
Name: "DevGuard",
Email: "",
},
})

if err != nil {
return fmt.Errorf("could not commit: %v", err)
}
Expand Down

0 comments on commit 8a0fe49

Please sign in to comment.