PrepareWebhooks adds all active webhooks to task queue.
(repo *Repository, event HookEventType, p api.Payloader)
| 676 | |
| 677 | // PrepareWebhooks adds all active webhooks to task queue. |
| 678 | func PrepareWebhooks(repo *Repository, event HookEventType, p api.Payloader) error { |
| 679 | // NOTE: To prevent too many cascading changes in a single refactoring PR, we |
| 680 | // choose to ignore this function in tests. |
| 681 | if x == nil && testutil.InTest { |
| 682 | return nil |
| 683 | } |
| 684 | return prepareWebhooks(x, repo, event, p) |
| 685 | } |
| 686 | |
| 687 | // TestWebhook adds the test webhook matches the ID to task queue. |
| 688 | func TestWebhook(repo *Repository, event HookEventType, p api.Payloader, webhookID int64) error { |
no test coverage detected