epic

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignReviewer

func AssignReviewer(ctx context.Context, client *github.Client, ev *github.IssueCommentEvent, assignees []string) (bool, error)

func AssignReviewerFromPR

func AssignReviewerFromPR(ctx context.Context, client *github.Client, ev *github.PullRequestEvent, assignees []string) (bool, error)

func CheckAutoBranchWithCheckSuiteEvent

func CheckAutoBranchWithCheckSuiteEvent(ctx context.Context, client *github.Client, autoMergeRepo *queue.AutoMergeQRepo, ev *github.CheckSuiteEvent)

func CheckAutoBranchWithStatusEvent

func CheckAutoBranchWithStatusEvent(ctx context.Context, client *github.Client, autoMergeRepo *queue.AutoMergeQRepo, ev *github.StatusEvent)

func DetectUnmergeablePR

func DetectUnmergeablePR(ctx context.Context, client *github.Client, ev *github.PushEvent)

func GetRepositoryInfo

func GetRepositoryInfo(ctx context.Context, repoSvc *github.RepositoriesService, owner, name string) *setting.RepositoryInfo

func RemoveAllStatusLabel

func RemoveAllStatusLabel(ctx context.Context, client *github.Client, repo *github.Repository, pr *github.PullRequest)

Types

type AcceptCommand

type AcceptCommand struct {
	Owner string
	Name  string

	Client  *github.Client
	BotName string
	Info    *setting.RepositoryInfo

	AutoMergeRepo *queue.AutoMergeQRepo
}

func (*AcceptCommand) AcceptChangesetByOthers

func (c *AcceptCommand) AcceptChangesetByOthers(ctx context.Context, ev *github.IssueCommentEvent, cmd *input.AcceptChangeByOthersCommand) (bool, error)

func (*AcceptCommand) AcceptChangesetByReviewer

func (c *AcceptCommand) AcceptChangesetByReviewer(ctx context.Context, ev *github.IssueCommentEvent, cmd *input.AcceptChangeByReviewerCommand) (bool, error)

type CancelApprovedCommand

type CancelApprovedCommand struct {
	BotName       string
	Client        *github.Client
	Owner         string
	Name          string
	Number        int
	Cmd           *input.CancelApprovedByReviewerCommand
	Info          *setting.RepositoryInfo
	AutoMergeRepo *queue.AutoMergeQRepo
}

func (*CancelApprovedCommand) CancelApprovedChangeSet

func (c *CancelApprovedCommand) CancelApprovedChangeSet(ctx context.Context, ev *github.IssueCommentEvent) (ok bool, err error)

type StateChangeInfo

type StateChangeInfo struct {
	Status                    string
	Owner                     string
	Name                      string
	NotHandle                 bool
	ID                        int64
	SHA                       string
	IsRelatedToAutoBranchBody func(string) bool
}

Jump to

Keyboard shortcuts

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