git: one generator per app, multiple instances
this allows locking for access for each org
This commit is contained in:
@@ -44,7 +44,7 @@ func (w *RequestProcessor) ProcessFunc(request *common.Request) error {
|
||||
return fmt.Errorf("Cannot find config for branch '%s'", req.Pull_Request.Base.Ref)
|
||||
}
|
||||
|
||||
git, err := w.git.CreateGitHandler(GitAuthor, GitEmail, AppName)
|
||||
git, err := w.git.CreateGitHandler(config.Organization, config.Branch)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error allocating GitHandler. Err: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user