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

Function GetWebhookOfRepoByID

internal/database/webhook.go:280–285  ·  view source on GitHub ↗

GetWebhookOfRepoByID returns webhook of repository by given ID.

(repoID, id int64)

Source from the content-addressed store, hash-verified

278
279// GetWebhookOfRepoByID returns webhook of repository by given ID.
280func GetWebhookOfRepoByID(repoID, id int64) (*Webhook, error) {
281 return getWebhook(&Webhook{
282 ID: id,
283 RepoID: repoID,
284 })
285}
286
287// GetWebhookByOrgID returns webhook of organization by given ID.
288func GetWebhookByOrgID(orgID, id int64) (*Webhook, error) {

Callers 4

loadWebhookFunction · 0.92
RedeliveryWebhookFunction · 0.92
EditHookFunction · 0.92
TestWebhookFunction · 0.85

Calls 1

getWebhookFunction · 0.85

Tested by 1

TestWebhookFunction · 0.68