Documentation ¶
Index ¶
Constants ¶
View Source
const (
TemplateErrorText = "failed to render template"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleWebhook ¶
type SubscriptionHandler ¶
type SubscriptionHandler interface {
GetSubscribedChannelsForRepository(webhookpayload.Payload) []*subscription.Subscription
}
type Webhook ¶
type Webhook interface { HandleRepoPushEvent(webhookpayload.RepoPushPayload) ([]*HandleWebhook, error) HandleIssueCreatedEvent(webhookpayload.IssueCreatedPayload) ([]*HandleWebhook, error) HandleIssueUpdatedEvent(webhookpayload.IssueUpdatedPayload) ([]*HandleWebhook, error) HandleIssueCommentCreatedEvent(webhookpayload.IssueCommentCreatedPayload) ([]*HandleWebhook, error) HandlePullRequestCreatedEvent(webhookpayload.PullRequestCreatedPayload) ([]*HandleWebhook, error) HandlePullRequestApprovedEvent(webhookpayload.PullRequestApprovedPayload) ([]*HandleWebhook, error) HandlePullRequestDeclinedEvent(webhookpayload.PullRequestDeclinedPayload) ([]*HandleWebhook, error) HandlePullRequestUnapprovedEvent(webhookpayload.PullRequestUnapprovedPayload) ([]*HandleWebhook, error) HandlePullRequestMergedEvent(webhookpayload.PullRequestMergedPayload) ([]*HandleWebhook, error) HandlePullRequestCommentCreatedEvent(webhookpayload.PullRequestCommentCreatedPayload) ([]*HandleWebhook, error) HandlePullRequestUpdatedEvent(webhookpayload.PullRequestUpdatedPayload) ([]*HandleWebhook, error) }
func NewWebhook ¶
func NewWebhook(s SubscriptionHandler, r PullRequestReviewHandler, t templaterenderer.TemplateRenderer) Webhook
Click to show internal directories.
Click to hide internal directories.