merge

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 11 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 *externalplugins.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 *externalplugins.Configuration, log *logrus.Entry) error

func HandlePullReviewCommentEvent

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

func HelpProvider

func HelpProvider(epa *externalplugins.ConfigAgent) func(
	enabledRepos []config.OrgRepo) (*pluginhelp.PluginHelp, error)

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