Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "ti-community-cherrypicker"
Variables ¶
This section is empty.
Functions ¶
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 ¶
type Server ¶
type Server struct { WebhookSecretGenerator func() []byte GitHubTokenGenerator func() []byte BotUser *github.UserData Email string GitClient git.ClientFactory // Used for unit testing Push func(forkName, newBranch string, force bool) error GitHubClient githubClient Log *logrus.Entry ConfigAgent *tiexternalplugins.ConfigAgent Bare *http.Client PatchURL string GitHubURL string Repos []github.Repo // contains filtered or unexported fields }
Server implements http.Handler. It validates incoming GitHub webhooks and then dispatches them to the appropriate plugins.
Click to show internal directories.
Click to hide internal directories.