mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
models/webhook: add skip check for Release event
This commit is contained in:
parent
b615d670b3
commit
dee76e4189
@ -537,6 +537,10 @@ func prepareHookTasks(e Engine, repo *Repository, event HookEventType, p api.Pay
|
|||||||
if !w.HasPullRequestEvent() {
|
if !w.HasPullRequestEvent() {
|
||||||
continue
|
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.
|
// Use separate objects so modifcations won't be made on payload on non-Gogs type hooks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user