Documentation ¶
Index ¶
- Constants
- Variables
- func HandleIssueCommentEvent(gc githubClient, ice *github.IssueCommentEvent, ...) error
- func HandlePullRequestEvent(gc githubClient, pe *github.PullRequestEvent, ...) error
- func HandlePullReviewCommentEvent(gc githubClient, pullReviewCommentEvent *github.ReviewCommentEvent, ...) error
- func HelpProvider(epa *tiexternalplugins.ConfigAgent) externalplugins.ExternalPluginHelpProvider
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 ¶
func HelpProvider(epa *tiexternalplugins.ConfigAgent) externalplugins.ExternalPluginHelpProvider
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.
Click to show internal directories.
Click to hide internal directories.