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

Method HasForkEvent

internal/database/webhook.go:173–176  ·  view source on GitHub ↗

HasForkEvent returns true if hook enabled fork event.

()

Source from the content-addressed store, hash-verified

171
172// HasForkEvent returns true if hook enabled fork event.
173func (w *Webhook) HasForkEvent() bool {
174 return w.SendEverything ||
175 (w.ChooseEvents && w.Fork)
176}
177
178// HasPushEvent returns true if hook enabled push event.
179func (w *Webhook) HasPushEvent() bool {

Callers 1

prepareHookTasksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected