GetWebhookOfRepoByID returns webhook of repository by given ID.
(repoID, id int64)
| 278 | |
| 279 | // GetWebhookOfRepoByID returns webhook of repository by given ID. |
| 280 | func 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. |
| 288 | func GetWebhookByOrgID(orgID, id int64) (*Webhook, error) { |