This commit is contained in:
Adam Majer 2024-07-09 15:05:49 +02:00
parent b7fa44ea09
commit 0a0686eaf7
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func main() {
defs.Url = PrReview defs.Url = PrReview
defs.GitAuthor = GitAuthor defs.GitAuthor = GitAuthor
defs.Handlers=make(map[string]common.RequestProcessor)
defs.Handlers[common.RequestType_PR] = processPullRequest defs.Handlers[common.RequestType_PR] = processPullRequest
common.RequireGiteaSecretToken() common.RequireGiteaSecretToken()

View File

@ -72,6 +72,8 @@ func main() {
defs.Url = "prjgit-updater" defs.Url = "prjgit-updater"
defs.GitAuthor = "GiteaBot - AutoDevel" defs.GitAuthor = "GiteaBot - AutoDevel"
defs.Handlers=make(map[string]common.RequestProcessor)
defs.Handlers[common.RequestType_Push] = processPushAction defs.Handlers[common.RequestType_Push] = processPushAction
defs.Handlers[common.RequestType_Repository] = processRepositoryAction defs.Handlers[common.RequestType_Repository] = processRepositoryAction