.
This commit is contained in:
parent
408a95c5bc
commit
fec4bb7958
@ -47,7 +47,12 @@ func processRepositoryAction(h *common.RequestHandler) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Println("num configs found:", len(configs))
|
||||
for _, config := range configs {
|
||||
if config.GitProjectName == action.Repository.Name {
|
||||
h.StdLogger.Println("+ ignoring repo event for PrjGit repository", config.GitProjectName)
|
||||
}
|
||||
}
|
||||
|
||||
var err error
|
||||
for _, config := range configs {
|
||||
err = concatenateErrors(err, processConfiguredRepositoryAction(h, action, config))
|
||||
@ -57,11 +62,6 @@ func processRepositoryAction(h *common.RequestHandler) error {
|
||||
}
|
||||
func processConfiguredRepositoryAction(h *common.RequestHandler, action *common.RepositoryWebhookEvent, config *common.AutogitConfig) error {
|
||||
prjgit := config.GitProjectName
|
||||
if action.Repository.Name == prjgit {
|
||||
h.StdLogger.Printf("repository event %s for PrjGit '%s'. Ignoring\n", common.DefaultGitPrj, action.Action)
|
||||
return nil
|
||||
}
|
||||
|
||||
git, err := common.CreateGitHandler(GitAuthor, GitEmail, AppName)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user