merge

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "ti-community-merge"

PluginName will register into prow.

Variables

View Source
var (

	// CanMergeRe is the regex that matches merge comments
	CanMergeRe = regexp.MustCompile(`(?mi)^/merge\s*$`)
	// CanMergeCancelRe is the regex that matches merge cancel comments
	CanMergeCancelRe = regexp.MustCompile(`(?mi)^/merge cancel\s*$`)
)

Functions

func HandleIssueCommentEvent

func HandleIssueCommentEvent(gc githubClient, ice *github.IssueCommentEvent, cfg *tiexternalplugins.Configuration,
	ol ownersclient.OwnersLoader, cp commentPruner, log *logrus.Entry) error

HandleIssueCommentEvent handles a GitHub issue comment event and adds or removes a "status/can-merge" label.

func HandlePullRequestEvent

func HandlePullRequestEvent(gc githubClient, pe *github.PullRequestEvent,
	cfg *tiexternalplugins.Configuration, log *logrus.Entry) error

func HandlePullReviewCommentEvent

func HandlePullReviewCommentEvent(gc githubClient, pullReviewCommentEvent *github.ReviewCommentEvent,
	cfg *tiexternalplugins.Configuration, ol ownersclient.OwnersLoader, cp commentPruner, log *logrus.Entry) error

func HelpProvider

HelpProvider constructs the PluginHelp for this plugin that takes into account enabled repositories. HelpProvider defines the type for function that construct the PluginHelp for plugins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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