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

Method HasPullRequestEvent

internal/database/webhook.go:191–194  ·  view source on GitHub ↗

HasPullRequestEvent returns true if hook enabled pull request event.

()

Source from the content-addressed store, hash-verified

189
190// HasPullRequestEvent returns true if hook enabled pull request event.
191func (w *Webhook) HasPullRequestEvent() bool {
192 return w.SendEverything ||
193 (w.ChooseEvents && w.PullRequest)
194}
195
196// HasIssueCommentEvent returns true if hook enabled issue comment event.
197func (w *Webhook) HasIssueCommentEvent() bool {

Callers 1

prepareHookTasksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected