Documentation
¶
Index ¶
- Constants
- func NewGithubHookHandler(ctx context.Context, clientCreator githubapp.ClientCreator, ...) *githubHookHandler
- type CommitCommentHandler
- type GitBot
- type IssueCommentHandler
- type Plugin
- type PullRequestHandler
- type PullRequestReviewHandler
- type Registry
- func (r *Registry) CallCommitCommentPlugins(ctx context.Context, client *github.Client, ...)
- func (r *Registry) CallIssueCommentPlugins(ctx context.Context, client *github.Client, ...)
- func (r *Registry) CallPrPlugins(ctx context.Context, client *github.Client, ...)
- func (r *Registry) CallReleasePlugins(ctx context.Context, client *github.Client, ...)
- func (r *Registry) PullRequestReviewPlugins(ctx context.Context, client *github.Client, ...)
- func (r *Registry) RegisterPlugin(p Plugin)
- type ReleaseHandler
- type StaticBotConfig
Constants ¶
View Source
const ( PrType = "pull_request" PrReviewType = "pull_request_review" IssueCommentType = "issue_comment" CommitCommentType = "commit_comment" ReleaseType = "release" )
Variables ¶
This section is empty.
Functions ¶
func NewGithubHookHandler ¶
func NewGithubHookHandler(ctx context.Context, clientCreator githubapp.ClientCreator, config *botconfig.ApplicationConfig) *githubHookHandler
Types ¶
type CommitCommentHandler ¶
type CommitCommentHandler interface {
Plugin
HandleCommitCommentEvent(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.CommitCommentEvent) error
}
type GitBot ¶
func NewSimpleGitBot ¶
func NewSimpleGitBot(staticConfig StaticBotConfig) (GitBot, error)
type IssueCommentHandler ¶
type IssueCommentHandler interface {
Plugin
HandleIssueCommentEvent(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.IssueCommentEvent) error
}
type PullRequestHandler ¶
type PullRequestHandler interface {
Plugin
HandlePREvent(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.PullRequestEvent) error
}
type PullRequestReviewHandler ¶
type PullRequestReviewHandler interface {
Plugin
HandlePullRequestReviewEvent(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.PullRequestReviewEvent) error
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) CallCommitCommentPlugins ¶
func (r *Registry) CallCommitCommentPlugins(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.CommitCommentEvent)
func (*Registry) CallIssueCommentPlugins ¶
func (r *Registry) CallIssueCommentPlugins(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.IssueCommentEvent)
func (*Registry) CallPrPlugins ¶
func (r *Registry) CallPrPlugins(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.PullRequestEvent)
func (*Registry) CallReleasePlugins ¶
func (r *Registry) CallReleasePlugins(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.ReleaseEvent)
func (*Registry) PullRequestReviewPlugins ¶
func (r *Registry) PullRequestReviewPlugins(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.PullRequestReviewEvent)
func (*Registry) RegisterPlugin ¶
type ReleaseHandler ¶
type ReleaseHandler interface {
Plugin
HandleReleaseEvent(ctx context.Context, client *github.Client, config *botconfig.ApplicationConfig, event *github.ReleaseEvent) error
}
type StaticBotConfig ¶
Click to show internal directories.
Click to hide internal directories.