Documentation ¶ Index ¶ func ParsePayload(payload []byte) (prUrl, owner, repo string, number int, _ error) type API func New(httpCLient *http.Client) API func (api API) PullRequestStatus(ctx context.Context, owner, repo string, number int) (PullRequestStatus, error) type PullRequestStatus 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 } Source Files ¶ View all Source files github.go Click to show internal directories. Click to hide internal directories.