github

package
v0.0.0-...-a196a74 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventGUID is sent by Github in a header of every webhook request.
	EventGUID = "event-GUID" // aligned with Prow fields
	// Event is sent by GitHub in a header of every webhook request.
	Event = "event-type" // aligned with Prow fields
	// RepoLogField is the repository from where the event came.
	RepoLogField = "github-repo"
	// SenderLogField is the username who caused the event to be sent.
	SenderLogField = "github-event-sender"
)
View Source
const (
	StatusPending = "pending"
	StatusSuccess = "success"
	StatusError   = "error"
	StatusFailure = "failure"
)

These are possible State entries for a Status.

View Source
const (
	ActionLabeled   = "labeled"
	ActionUnlabeled = "unlabeled"
)

These are the possible actions for the Pull Request Event Type

View Source
const (
	IssueComment = EventType("issue_comment") // nolint
	PullRequest  = EventType("pull_request")  // nolint
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string

EventType encapsulates all event types

type StatusContext

type StatusContext struct {
	BotName    string
	PluginName string
}

StatusContext enc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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