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

Method HasReleaseEvent

internal/database/webhook.go:203–206  ·  view source on GitHub ↗

HasReleaseEvent returns true if hook enabled release event.

()

Source from the content-addressed store, hash-verified

201
202// HasReleaseEvent returns true if hook enabled release event.
203func (w *Webhook) HasReleaseEvent() bool {
204 return w.SendEverything ||
205 (w.ChooseEvents && w.Release)
206}
207
208type eventChecker struct {
209 checker func() bool

Callers 1

prepareHookTasksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected