externalplugin

package
v0.0.0-...-058a11f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "eksdistroopstool"

Variables

This section is empty.

Functions

func CreateBackportBody

func CreateBackportBody(org, repo string, num int, requestor, note string) string

func FormatIEResponse

func FormatIEResponse(ie github.IssueEvent, s string) string

Created based off plugins.FormatICResponse

func HelpProvider

func HelpProvider(_ []config.OrgRepo) (*pluginhelp.PluginHelp, error)

HelpProvider construct the pluginhelp.PluginHelp for this plugin.

Types

type Server

type Server struct {
	TokenGenerator func() []byte
	BotUser        *github.UserData
	Email          string

	Gc  git.ClientFactory
	Ghc githubClient
	Log *logrus.Entry

	// Labels to apply.
	Labels []string
	// Use prow to assign users issues.
	ProwAssignments bool
	// Allow anybody to request or trigger event.
	AllowAll bool
	// Create an issue on conflict.
	IssueOnConflict bool
	// Set a custom label prefix.
	LabelPrefix string

	Bare     *http.Client
	PatchURL 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.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP validates an incoming webhook and puts it into the event channel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL