diff --git a/pr-review/main.go b/pr-review/main.go index 7b41c4e..bb29388 100644 --- a/pr-review/main.go +++ b/pr-review/main.go @@ -28,6 +28,8 @@ func main() { defs.Url = PrReview defs.GitAuthor = GitAuthor + + defs.Handlers=make(map[string]common.RequestProcessor) defs.Handlers[common.RequestType_PR] = processPullRequest common.RequireGiteaSecretToken() diff --git a/prjgit-updater/main.go b/prjgit-updater/main.go index 04c6d74..b30ea15 100644 --- a/prjgit-updater/main.go +++ b/prjgit-updater/main.go @@ -72,6 +72,8 @@ func main() { defs.Url = "prjgit-updater" defs.GitAuthor = "GiteaBot - AutoDevel" + + defs.Handlers=make(map[string]common.RequestProcessor) defs.Handlers[common.RequestType_Push] = processPushAction defs.Handlers[common.RequestType_Repository] = processRepositoryAction