GetWebhookByOrgID returns webhook of organization by given ID.
(orgID, id int64)
| 286 | |
| 287 | // GetWebhookByOrgID returns webhook of organization by given ID. |
| 288 | func 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. |
| 296 | func getActiveWebhooksByRepoID(e Engine, repoID int64) ([]*Webhook, error) { |
no test coverage detected