From 6894e92eeb1adddb5e38207f362b352dcf216379 Mon Sep 17 00:00:00 2001 From: viktorbarzin Date: Tue, 16 Mar 2021 23:35:22 +0000 Subject: [PATCH] add author to commit name --- cli/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/main.go b/cli/main.go index cc853315..e5584688 100644 --- a/cli/main.go +++ b/cli/main.go @@ -5,6 +5,7 @@ import ( "fmt" "github.com/go-git/go-git/v5" + "github.com/go-git/go-git/v5/plumbing/object" "github.com/golang/glog" "github.com/pkg/errors" ) @@ -74,7 +75,7 @@ func run() error { return errors.Wrapf(err, "failed to add vpn client") } // commit changes - if _, err = worktree.Commit("Added new VPN client config (still testing) [CI SKIP]", &git.CommitOptions{All: true}); err != nil { + if _, err = worktree.Commit("Added new VPN client config (still testing) [CI SKIP]", &git.CommitOptions{All: true, Author: &object.Signature{Name: "Webhook Handler Bot"}}); err != nil { return errors.Wrapf(err, "failed to commit") } default: