handler

package
v0.0.0-...-dabe4b8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPRConfig

func FindPRConfig(ctx context.Context, configFetcher bulldozer.ConfigFetcher, client *github.Client, pullCtx pull.Context) (*bulldozer.FetchedConfig, error)

func Health

func Health() http.Handler

func MergePullRequest

func MergePullRequest(ctx context.Context, serverConfig *ServerConfig, prConfig bulldozer.Config, pullCtx pull.Context, client *github.Client) error

func ProcessPullRequest

func ProcessPullRequest(ctx context.Context, serverConfig *ServerConfig, pullCtx pull.Context, client *github.Client, baseRef string) error

func UpdatePullRequest

func UpdatePullRequest(ctx context.Context, serverConfig *ServerConfig, prConfig bulldozer.Config, pullCtx pull.Context, client *github.Client, baseRef string) error

Types

type CheckRun

type CheckRun struct {
	Config *ServerConfig
}

func (*CheckRun) Handle

func (h *CheckRun) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*CheckRun) Handles

func (h *CheckRun) Handles() []string

type HealthCheck

type HealthCheck struct {
	Status  string `json:"status"`
	Version string `json:"version"`
}

type IssueComment

type IssueComment struct {
	Config *ServerConfig
}

func (*IssueComment) Handle

func (h *IssueComment) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*IssueComment) Handles

func (h *IssueComment) Handles() []string

type PullRequest

type PullRequest struct {
	Config *ServerConfig
}

func (*PullRequest) Handle

func (h *PullRequest) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*PullRequest) Handles

func (h *PullRequest) Handles() []string

type PullRequestReview

type PullRequestReview struct {
	Config *ServerConfig
}

func (*PullRequestReview) Handle

func (h *PullRequestReview) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*PullRequestReview) Handles

func (h *PullRequestReview) Handles() []string

type Push

type Push struct {
	Config *ServerConfig
}

func (*Push) Handle

func (h *Push) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*Push) Handles

func (h *Push) Handles() []string

type ServerConfig

type ServerConfig struct {
	githubapp.ClientCreator
	bulldozer.ConfigFetcher

	PushRestrictionUserToken string
}

type Status

type Status struct {
	Config *ServerConfig
}

func (*Status) Handle

func (h *Status) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*Status) Handles

func (h *Status) Handles() []string

Jump to

Keyboard shortcuts

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