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

Function GetWebhookByOrgID

internal/database/webhook.go:288–293  ·  view source on GitHub ↗

GetWebhookByOrgID returns webhook of organization by given ID.

(orgID, id int64)

Source from the content-addressed store, hash-verified

286
287// GetWebhookByOrgID returns webhook of organization by given ID.
288func GetWebhookByOrgID(orgID, id int64) (*Webhook, error) {
289 return getWebhook(&Webhook{
290 ID: id,
291 OrgID: orgID,
292 })
293}
294
295// getActiveWebhooksByRepoID returns all active webhooks of repository.
296func getActiveWebhooksByRepoID(e Engine, repoID int64) ([]*Webhook, error) {

Callers 1

loadWebhookFunction · 0.92

Calls 1

getWebhookFunction · 0.85

Tested by

no test coverage detected