github

package
v0.0.0-...-2d3cef0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncomingWebhook

func IncomingWebhook(
	ctx context.Context,
	r *http.Request,
	payload []byte,
	client *github.Client,
) error

IncomingWebhook handles an incoming webhook request

func IssueCommentHandler

func IssueCommentHandler(
	ctx context.Context,
	event *github.IssueCommentEvent,
	client *github.Client,
) error

IssueCommentHandler takes an incoming event of type IssueCommentEvent and runs logic against it

func PullRequestHandler

func PullRequestHandler(
	ctx context.Context,
	event *github.PullRequestEvent,
	client *github.Client,
) error

PullRequestHandler handler for the pull request event

func PullRequestsScheduledJobs

func PullRequestsScheduledJobs(
	ctx context.Context,
	client *github.Client,
)

PullRequestsScheduledJobs will go through an installations repos and run jobs against all Pull Requests where Paul is installed

Types

type ScehduledJobInformation

type ScehduledJobInformation struct {
	Cfg          types.PaulConfig
	Repo         *github.Repository
	PullRequests []*github.PullRequest
}

ScehduledPullRequests helper struct to limit calls to repos

Jump to

Keyboard shortcuts

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