Documentation ¶
Index ¶
- Constants
- 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 HandlePullReviewEvent(gc githubClient, pullReviewEvent *github.ReviewEvent, ...) error
- func HelpProvider(epa *externalplugins.ConfigAgent) func(enabledRepos []config.OrgRepo) (*pluginhelp.PluginHelp, error)
Constants ¶
View Source
const ( // PluginName will register into prow. PluginName = "ti-community-lgtm" // ReviewNotificationName defines the name used in the title for the review notifications. ReviewNotificationName = "Review Notification" // ReviewNotificationIdentifier defines the identifier for the review notifications. ReviewNotificationIdentifier = "Review Notification Identifier" )
Variables ¶
This section is empty.
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 HandlePullRequestEvent ¶ added in v1.0.0
func HandlePullRequestEvent(gc githubClient, pe *github.PullRequestEvent, config *externalplugins.Configuration, log *logrus.Entry) error
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.