diff options
author | Unknwon <u@gogs.io> | 2017-03-11 18:44:50 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-11 18:44:50 -0500 |
commit | dee76e4189446d97040e8c715a811424bd91704c (patch) | |
tree | 4d271baed39cdf8e4679a13ea92c42dea38133d4 | |
parent | b615d670b3c49c077731d3b2fe28ba267bd1b83a (diff) |
models/webhook: add skip check for Release event
-rw-r--r-- | models/webhook.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/webhook.go b/models/webhook.go index 86beeb87..ad7a5a3d 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -537,6 +537,10 @@ func prepareHookTasks(e Engine, repo *Repository, event HookEventType, p api.Pay if !w.HasPullRequestEvent() { continue } + case HOOK_EVENT_RELEASE: + if !w.HasReleaseEvent() { + continue + } } // Use separate objects so modifcations won't be made on payload on non-Gogs type hooks. |