workflow-pr: app name

This commit is contained in:
Adam Majer 2024-09-29 15:32:32 +02:00
parent 464e807747
commit 4692cfbe6f

View File

@ -32,10 +32,9 @@ import (
) )
const ( const (
AppName = "pr_workflow" AppName = "workflow-pr"
GitAuthor = "AutoGits - pr-review" GitAuthor = "AutoGits - pr-review"
GitEmail = "adam+autogits-pr@zombino.com" GitEmail = "adam+autogits-pr@zombino.com"
PrReview = "pr-review"
) )
var configuredRepos map[string][]*common.AutogitConfig var configuredRepos map[string][]*common.AutogitConfig
@ -210,7 +209,7 @@ func processPullRequest(request *common.Request) error {
return fmt.Errorf("Cannot find config for branch '%s'", req.Pull_Request.Base.Ref) return fmt.Errorf("Cannot find config for branch '%s'", req.Pull_Request.Base.Ref)
} }
git, err := common.CreateGitHandler(GitAuthor, GitEmail, PrReview) git, err := common.CreateGitHandler(GitAuthor, GitEmail, AppName)
if err != nil { if err != nil {
return fmt.Errorf("Error allocating GitHandler. Err: %w", err) return fmt.Errorf("Error allocating GitHandler. Err: %w", err)
} }