MCPcopy Create free account
hub / github.com/gogs/gogs / HasPushEvent

Method HasPushEvent

internal/database/webhook.go:179–182  ·  view source on GitHub ↗

HasPushEvent returns true if hook enabled push event.

()

Source from the content-addressed store, hash-verified

177
178// HasPushEvent returns true if hook enabled push event.
179func (w *Webhook) HasPushEvent() bool {
180 return w.PushOnly || w.SendEverything ||
181 (w.ChooseEvents && w.Push)
182}
183
184// HasIssuesEvent returns true if hook enabled issues event.
185func (w *Webhook) HasIssuesEvent() bool {

Callers 1

prepareHookTasksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected