Documentation ¶
Index ¶
- Constants
- Variables
- func HandleIssueCommentEvent(gc githubClient, ice *github.IssueCommentEvent, ...) error
- func HandlePullReviewCommentEvent(gc githubClient, pullReviewCommentEvent *github.ReviewCommentEvent, ...) error
- func HandlePullReviewEvent(gc githubClient, pullReviewEvent *github.ReviewEvent, ...) error
- func HelpProvider(epa *externalplugins.ConfigAgent) func(enabledRepos []config.OrgRepo) (*pluginhelp.PluginHelp, error)
Constants ¶
View Source
const PluginName = "ti-community-lgtm"
PluginName will register into prow.
Variables ¶
View Source
var ( // LGTMRe is the regex that matches lgtm comments LGTMRe = regexp.MustCompile(`(?mi)^/lgtm\s*$`) // LGTMCancelRe is the regex that matches lgtm cancel comments LGTMCancelRe = regexp.MustCompile(`(?mi)^/lgtm cancel\s*$`) )
Functions ¶
func HandleIssueCommentEvent ¶
func HandleIssueCommentEvent(gc githubClient, ice *github.IssueCommentEvent, cfg *externalplugins.Configuration, ol ownersclient.OwnersLoader, log *logrus.Entry) error
HandleIssueCommentEvent handles a GitHub issue comment event and adds or removes a "status/LGT{number}" label.
func HandlePullReviewCommentEvent ¶
func HandlePullReviewCommentEvent(gc githubClient, pullReviewCommentEvent *github.ReviewCommentEvent, cfg *externalplugins.Configuration, ol ownersclient.OwnersLoader, log *logrus.Entry) error
func HandlePullReviewEvent ¶
func HandlePullReviewEvent(gc githubClient, pullReviewEvent *github.ReviewEvent, cfg *externalplugins.Configuration, ol ownersclient.OwnersLoader, 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.
Click to show internal directories.
Click to hide internal directories.