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

Function UpdateWebhook

internal/database/webhook.go:308–311  ·  view source on GitHub ↗

UpdateWebhook updates information of webhook.

(w *Webhook)

Source from the content-addressed store, hash-verified

306
307// UpdateWebhook updates information of webhook.
308func UpdateWebhook(w *Webhook) error {
309 _, err := x.Id(w.ID).AllCols().Update(w)
310 return err
311}
312
313// deleteWebhook uses argument bean as query condition,
314// ID must be specified and do not assign unnecessary fields.

Callers 3

validateAndUpdateWebhookFunction · 0.92
EditHookFunction · 0.92
deliverMethod · 0.85

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected