Browse Source

models/webhook: add skip check for Release event

pull/4280/head
Unknwon 8 years ago
parent
commit
dee76e4189
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 4
      models/webhook.go

4
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.

Loading…
Cancel
Save