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

Function GetWebhookByID

internal/database/webhook.go:273–277  ·  view source on GitHub ↗

GetWebhookByID returns webhook by given ID. Use this function with caution of accessing unauthorized webhook, which means should only be used in non-user interactive functions.

(id int64)

Source from the content-addressed store, hash-verified

271// Use this function with caution of accessing unauthorized webhook,
272// which means should only be used in non-user interactive functions.
273func GetWebhookByID(id int64) (*Webhook, error) {
274 return getWebhook(&Webhook{
275 ID: id,
276 })
277}
278
279// GetWebhookOfRepoByID returns webhook of repository by given ID.
280func GetWebhookOfRepoByID(repoID, id int64) (*Webhook, error) {

Callers 1

deliverMethod · 0.85

Calls 1

getWebhookFunction · 0.85

Tested by

no test coverage detected