getActiveWebhooksByRepoID returns all active webhooks of repository.
(e Engine, repoID int64)
| 294 | |
| 295 | // getActiveWebhooksByRepoID returns all active webhooks of repository. |
| 296 | func getActiveWebhooksByRepoID(e Engine, repoID int64) ([]*Webhook, error) { |
| 297 | webhooks := make([]*Webhook, 0, 5) |
| 298 | return webhooks, e.Where("repo_id = ?", repoID).And("is_active = ?", true).Find(&webhooks) |
| 299 | } |
| 300 | |
| 301 | // GetWebhooksByRepoID returns all webhooks of a repository. |
| 302 | func GetWebhooksByRepoID(repoID int64) ([]*Webhook, error) { |
no test coverage detected