framework

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(bot Robot, o options.ServiceOptions)

Types

type CommitCommentEventHandler

type CommitCommentEventHandler func(e *github.CommitCommentEvent, cfg config.Config, log *logrus.Entry) error

CommitCommentEventHandler defines the function contract for a github.CommitCommentEvent handler.

type HandlerRegister

type HandlerRegister interface {
	RegisterIssueHandler(IssueHandler)
	RegisterPullRequestHandler(PullRequestHandler)
	RegisterPushEventHandler(PushEventHandler)
	RegisterIssueCommentHandler(IssueCommentHandler)
	RegisterStatusEventHandler(StatusEventHandler)
	RegisterReviewEventHandler(ReviewEventHandler)
	RegisterReviewCommentEventHandler(ReviewCommentEventHandler)
	RegisterCommitCommentEventHandler(CommitCommentEventHandler)
}

type IssueCommentHandler

type IssueCommentHandler func(e *github.IssueCommentEvent, cfg config.Config, log *logrus.Entry) error

IssueCommentHandler defines the function contract for a github.IssueCommentEvent handler.

type IssueHandler

type IssueHandler func(e *github.IssuesEvent, cfg config.Config, log *logrus.Entry) error

IssueHandler defines the function contract for a github.IssuesEvent handler.

type PullRequestHandler

type PullRequestHandler func(e *github.PullRequestEvent, cfg config.Config, log *logrus.Entry) error

PullRequestHandler defines the function contract for a github.PullRequestEvent handler.

type PushEventHandler

type PushEventHandler func(e *github.PushEvent, cfg config.Config, log *logrus.Entry) error

PushEventHandler defines the function contract for a github.PushEvent handler.

type ReviewCommentEventHandler

type ReviewCommentEventHandler func(e *github.PullRequestReviewCommentEvent, cfg config.Config, log *logrus.Entry) error

ReviewCommentEventHandler defines the function contract for a github.PullRequestReviewCommentEvent handler.

type ReviewEventHandler

type ReviewEventHandler func(e *github.PullRequestReviewEvent, cfg config.Config, log *logrus.Entry) error

ReviewEventHandler defines the function contract for a github.PullRequestReviewEvent handler.

type Robot

type Robot interface {
	NewConfig() config.Config
	RegisterEventHandler(HandlerRegister)
}

type StatusEventHandler

type StatusEventHandler func(e *github.StatusEvent, cfg config.Config, log *logrus.Entry) error

StatusEventHandler defines the function contract for a github.StatusEvent handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL