github

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePayload

func ParsePayload(payload []byte) (prUrl, owner, repo string, number int, _ error)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(httpCLient *http.Client) API

func (API) PullRequestStatus

func (api API) PullRequestStatus(ctx context.Context, owner, repo string, number int) (PullRequestStatus, error)

type PullRequestStatus

type PullRequestStatus struct {
	Approved         bool
	ChangesRequested bool
	Commented        bool
	Closed           bool
	Merged           bool

	// True when a reviewer who has already submitted a review has been re-requested to review the PR.
	ReviewRequested bool
}

Jump to

Keyboard shortcuts

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