Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + const AboutThisBot + const AboutThisBotCommands + const AboutThisBotWithoutCommands + const BugzillaOptionsWildcard + var CommentMap = genyaml.NewCommentMap(nil) + func EventsForPlugin(name string) []string + func FormatICResponse(ic github.IssueComment, s string) string + func FormatResponse(to, message, reason string) string + func FormatResponseRaw(body, bodyURL, login, reply string) string + func FormatSimpleResponse(message string) string + func HelpProviders() map[string]HelpProvider + func RegisterGenericCommentHandler(name string, fn GenericCommentHandler, help HelpProvider) + func RegisterIssueCommentHandler(name string, fn IssueCommentHandler, help HelpProvider) + func RegisterIssueHandler(name string, fn IssueHandler, help HelpProvider) + func RegisterPullRequestHandler(name string, fn PullRequestHandler, help HelpProvider) + func RegisterPushEventHandler(name string, fn PushEventHandler, help HelpProvider) + func RegisterReviewCommentEventHandler(name string, fn ReviewCommentEventHandler, help HelpProvider) + func RegisterReviewEventHandler(name string, fn ReviewEventHandler, help HelpProvider) + func RegisterStatusEventHandler(name string, fn StatusEventHandler, help HelpProvider) + type Agent struct + BugzillaClient bugzilla.Client + BuildClusterCoreV1Clients map[string]corev1.CoreV1Interface + Config *config.Config + GitClient git.ClientFactory + GitHubClient PluginGitHubClient + JiraClient jira.Client + KubernetesClient kubernetes.Interface + Logger *logrus.Entry + Metrics *Metrics + OwnersClient repoowners.Interface + PluginConfig *Configuration + ProwJobClient prowv1.ProwJobInterface + SlackClient *slack.Client + func NewAgent(configAgent *config.Agent, pluginConfigAgent *ConfigAgent, ...) Agent + func (a *Agent) CommentPruner() (*commentpruner.EventClient, error) + func (a *Agent) InitializeCommentPruner(org, repo string, pr int) + func (a *Agent) TookAction() bool + type Approve struct + CommandHelpLink string + IgnoreReviewState *bool + IssueRequired bool + LgtmActsAsApprove bool + PrProcessLink string + Repos []string + RequireSelfApproval *bool + func (a Approve) ConsiderReviewState() bool + func (a Approve) HasSelfApproval() bool + type AssignOnLabel struct + Label string + type Blockade struct + BlockRegexps []string + BranchRe *regexp.Regexp + BranchRegexp *string + ExceptionRegexps []string + Explanation string + Repos []string + type Blunderbuss struct + ExcludeApprovers bool + IgnoreAuthors []string + IgnoreDrafts bool + MaxReviewerCount int + ReviewerCount *int + UseStatusAvailability bool + type BranchCleaner struct + PreservedBranches map[string][]string + func (b *BranchCleaner) IsPreservedBranch(org, repo, branch string) bool + type BranchToMilestone map[string]string + type Bugzilla struct + Default map[string]BugzillaBranchOptions + Orgs map[string]BugzillaOrgOptions + func (b *Bugzilla) OptionsForBranch(org, repo, branch string) BugzillaBranchOptions + func (b *Bugzilla) OptionsForRepo(org, repo string) map[string]BugzillaBranchOptions + type BugzillaBranchOptions struct + AddExternalLink *bool + AllowedGroups []string + DependentBugStates *[]BugzillaBugState + DependentBugStatuses *[]string + DependentBugTargetReleases *[]string + DeprecatedDependentBugTargetRelease *string + EnableBackporting *bool + ExcludeDefaults *bool + IsOpen *bool + StateAfterClose *BugzillaBugState + StateAfterMerge *BugzillaBugState + StateAfterValidation *BugzillaBugState + StatusAfterMerge *string + StatusAfterValidation *string + Statuses *[]string + TargetRelease *string + ValidStates *[]BugzillaBugState + ValidateByDefault *bool + func OptionsForItem(item string, config map[string]BugzillaBranchOptions) BugzillaBranchOptions + func ResolveBugzillaOptions(parent, child BugzillaBranchOptions) BugzillaBranchOptions + type BugzillaBugState struct + Resolution string + Status string + func (s *BugzillaBugState) AsBugUpdate(bug *bugzilla.Bug) *bugzilla.BugUpdate + func (s *BugzillaBugState) Matches(bug *bugzilla.Bug) bool + func (s *BugzillaBugState) String() string + type BugzillaBugStateSet map[BugzillaBugState]interface + func (s BugzillaBugStateSet) Has(state BugzillaBugState) bool + func (s BugzillaBugStateSet) Insert(states ...BugzillaBugState) BugzillaBugStateSet + func NewBugzillaBugStateSet(states []BugzillaBugState) BugzillaBugStateSet + type BugzillaOrgOptions struct + Default map[string]BugzillaBranchOptions + Repos map[string]BugzillaRepoOptions + type BugzillaRepoOptions struct + Branches map[string]BugzillaBranchOptions + type Cat struct + KeyPath string + type CherryPickUnapproved struct + BranchRe *regexp.Regexp + BranchRegexp string + Comment string + type ClientAgent struct + BugzillaClient bugzilla.Client + BuildClusterCoreV1Clients map[string]corev1.CoreV1Interface + GitClient git.ClientFactory + GitHubClient github.Client + JiraClient jira.Client + KubernetesClient kubernetes.Interface + OwnersClient repoowners.Interface + ProwJobClient prowv1.ProwJobInterface + SlackClient *slack.Client + type ClusterGroup struct + Clusters []string + Namespaces []string + type ConfigAgent struct + func NewFakeConfigAgent() ConfigAgent + func (pa *ConfigAgent) Config() *Configuration + func (pa *ConfigAgent) GenericCommentHandlers(owner, repo string) map[string]GenericCommentHandler + func (pa *ConfigAgent) IssueCommentHandlers(owner, repo string) map[string]IssueCommentHandler + func (pa *ConfigAgent) IssueHandlers(owner, repo string) map[string]IssueHandler + func (pa *ConfigAgent) Load(path string, supplementalPluginConfigDirs []string, ...) error + func (pa *ConfigAgent) PullRequestHandlers(owner, repo string) map[string]PullRequestHandler + func (pa *ConfigAgent) PushEventHandlers(owner, repo string) map[string]PushEventHandler + func (pa *ConfigAgent) ReviewCommentEventHandlers(owner, repo string) map[string]ReviewCommentEventHandler + func (pa *ConfigAgent) ReviewEventHandlers(owner, repo string) map[string]ReviewEventHandler + func (pa *ConfigAgent) Set(pc *Configuration) + func (pa *ConfigAgent) Start(path string, supplementalPluginConfigDirs []string, ...) error + func (pa *ConfigAgent) StatusEventHandlers(owner, repo string) map[string]StatusEventHandler + type ConfigMapID struct + Cluster string + Name string + Namespace string + type ConfigMapSpec struct + ClusterGroups []string + Clusters map[string][]string + GZIP *bool + Key string + Name string + PartitionedNames []string + UseFullPathAsKey bool + type ConfigUpdater struct + ClusterGroups map[string]ClusterGroup + GZIP bool + Maps map[string]ConfigMapSpec + func (cu *ConfigUpdater) SetDefaults() + func (cu *ConfigUpdater) UnmarshalJSON(d []byte) error + type Configuration struct + Approve []Approve + Blockades []Blockade + Blunderbuss Blunderbuss + BranchCleaner BranchCleaner + Bugzilla Bugzilla + Cat Cat + CherryPickUnapproved CherryPickUnapproved + ConfigUpdater ConfigUpdater + Dco map[string]*Dco + ExternalPlugins map[string][]ExternalPlugin + Golint Golint + Goose Goose + Heart Heart + Help Help + Jira *Jira + Label Label + Lgtm []Lgtm + MilestoneApplier map[string]BranchToMilestone + Override Override + Owners Owners + Plugins Plugins + Project ProjectConfig + ProjectManager ProjectManager + RepoMilestone map[string]Milestone + RequireMatchingLabel []RequireMatchingLabel + Retitle Retitle + SigMention SigMention + Size Size + Slack Slack + Triggers []Trigger + Welcome []Welcome + func (c *Configuration) ApproveFor(org, repo string) *Approve + func (c *Configuration) DcoFor(org, repo string) *Dco + func (c *Configuration) EnabledReposForExternalPlugin(plugin string) (orgs, repos []string) + func (c *Configuration) EnabledReposForPlugin(plugin string) (orgs, repos []string, orgExceptions map[string]sets.String) + func (c *Configuration) HasConfigFor() (global bool, orgs sets.String, repos sets.String) + func (c *Configuration) LgtmFor(org, repo string) *Lgtm + func (c *Configuration) MDYAMLEnabled(org, repo string) bool + func (c *Configuration) OwnersFilenames(org, repo string) ownersconfig.Filenames + func (c *Configuration) SkipCollaborators(org, repo string) bool + func (c *Configuration) TriggerFor(org, repo string) Trigger + func (c *Configuration) Validate() error + func (c *Configuration) ValidatePluginsUnknown() error + type Dco struct + ContributingBranch string + ContributingPath string + ContributingRepo string + SkipDCOCheckForCollaborators bool + SkipDCOCheckForMembers bool + TrustedApps []string + TrustedOrg string + type ExternalPlugin struct + Endpoint string + Events []string + Name string + type GenericCommentHandler func(Agent, github.GenericCommentEvent) error + type Golint struct + MinimumConfidence *float64 + type Goose struct + KeyPath string + type Heart struct + Adorees []string + CommentRe *regexp.Regexp + CommentRegexp string + type Help struct + HelpGuidelinesSummary string + HelpGuidelinesURL string + type HelpProvider func(config *Configuration, enabledRepos []config.OrgRepo) (*pluginhelp.PluginHelp, error) + type IssueCommentHandler func(Agent, github.IssueCommentEvent) error + type IssueHandler func(Agent, github.IssueEvent) error + type Jira struct + DisabledJiraProjects []string + type Label struct + AdditionalLabels []string + RestrictedLabels map[string][]RestrictedLabel + func (l Label) IsRestrictedLabelInAdditionalLables(restricted string) bool + func (l Label) RestrictedLabelsFor(org, repo string) map[string]RestrictedLabel + type Lgtm struct + Repos []string + ReviewActsAsLgtm bool + StickyLgtmTeam string + StoreTreeHash bool + type ManagedColumn struct + ID *int + Labels []string + Name string + Org string + State string + type ManagedOrgRepo struct + Projects map[string]ManagedProject + type ManagedProject struct + Columns []ManagedColumn + type MergeWarning struct + Channels []string + ExemptBranches map[string][]string + ExemptUsers []string + Repos []string + type Metrics struct + ConfigMapGauges *prometheus.GaugeVec + func NewMetrics() *Metrics + type Milestone struct + MaintainersFriendlyName string + MaintainersID int + MaintainersTeam string + type OrgPlugins struct + ExcludedRepos []string + Plugins []string + type Override struct + AllowTopLevelOwners bool + AllowedGitHubTeams map[string][]string + type Owners struct + Filenames map[string]ownersconfig.Filenames + LabelsDenyList []string + MDYAMLRepos []string + SkipCollaborators []string + type PluginGitHubClient interface + Query func(ctx context.Context, q interface{}, vars map[string]interface{}) error + type Plugins map[string]OrgPlugins + func OldToNewPlugins(oldPlugins map[string][]string) Plugins + func (p *Plugins) UnmarshalJSON(d []byte) error + type ProjectConfig struct + Orgs map[string]ProjectOrgConfig + func (pluginConfig *ProjectConfig) GetColumnMap(org string, repo string) map[string]string + func (pluginConfig *ProjectConfig) GetMaintainerTeam(org string, repo string) int + func (pluginConfig *ProjectConfig) GetOrgColumnMap(org string) map[string]string + type ProjectManager struct + OrgRepos map[string]ManagedOrgRepo + type ProjectOrgConfig struct + MaintainerTeamID int + ProjectColumnMap map[string]string + Repos map[string]ProjectRepoConfig + type ProjectRepoConfig struct + MaintainerTeamID int + ProjectColumnMap map[string]string + type PullRequestHandler func(Agent, github.PullRequestEvent) error + type PushEventHandler func(Agent, github.PushEvent) error + type RequireMatchingLabel struct + Branch string + GracePeriod string + GracePeriodDuration time.Duration + Issues bool + MissingComment string + MissingLabel string + Org string + PRs bool + Re *regexp.Regexp + Regexp string + Repo string + func (r RequireMatchingLabel) Describe() string + type RestrictedLabel struct + AllowedTeams []string + AllowedUsers []string + AssignOn []AssignOnLabel + Label string + type Retitle struct + AllowClosedIssues bool + type ReviewCommentEventHandler func(Agent, github.ReviewCommentEvent) error + type ReviewEventHandler func(Agent, github.ReviewEvent) error + type SigMention struct + Re *regexp.Regexp + Regexp string + type Size struct + L int + M int + S int + Xl int + Xxl int + type Slack struct + MentionChannels []string + MergeWarnings []MergeWarning + type StatusEventHandler func(Agent, github.StatusEvent) error + type Trigger struct + IgnoreOkToTest bool + JoinOrgURL string + OnlyOrgMembers bool + Repos []string + TriggerGitHubWorkflows bool + TrustedApps []string + TrustedOrg string + func (t *Trigger) SetDefaults() + type Welcome struct + AlwaysPost bool + MessageTemplate string + Repos []string