Versions in this module Expand all Collapse all v0 v0.27.0 Dec 2, 2026 v0.26.0 Nov 20, 2026 v0.25.2 Nov 17, 2026 v0.25.1 Nov 17, 2026 v0.25.0 Nov 16, 2026 v0.24.2 Nov 13, 2026 v0.24.1 Nov 12, 2026 Changes in this version + type Client interface + Compare func(ctx context.Context, owner, repo, base, head string) (Comparison, error) + CreateReview func(ctx context.Context, owner, repo string, number int, req ReviewRequest) (Review, error) + LatestRelease func(ctx context.Context, owner, repo string) (string, error) + ListIssueComments func(ctx context.Context, owner, repo string, number int) ([]IssueComment, error) + ListReviewThreads func(ctx context.Context, owner, repo string, number int) ([]ReviewThread, error) + ListReviews func(ctx context.Context, owner, repo string, number int) ([]Review, error) + PullRequest func(ctx context.Context, owner, repo string, number int) (PullRequest, error) + PullRequestCommits func(ctx context.Context, owner, repo string, number int) ([]Commit, error) + PullRequestsForBranch func(ctx context.Context, owner, repo, headOwner, branch string) ([]PullRequest, error) + TokenKind func() TokenKind + UpdateReview func(ctx context.Context, owner, repo string, number int, id int64, body string) (Review, error) + Viewer func(ctx context.Context) (string, error) + type Commit struct + Message string + SHA string + type ComparedFile struct + Additions int + Deletions int + Filename string + PreviousFilename string + type Comparison struct + AheadBy int + Commits []Commit + Files []ComparedFile + Status string + type HTTPError struct + Message string + Status int + func (e *HTTPError) Definite() bool + func (e *HTTPError) Error() string + type IssueComment struct + Body string + CreatedAt time.Time + HTMLURL string + ID int64 + User string + type PullRequest struct + Author string + BaseRef string + BaseSHA string + HeadOwner string + HeadRepo string + HeadSHA string + Merged bool + Number int + State string + Title string + URL string + type REST struct + func NewREST(transport http.RoundTripper) (*REST, error) + func NewRESTWithToken(transport http.RoundTripper, token string) (*REST, error) + func (c *REST) Compare(ctx context.Context, owner, repo, base, head string) (Comparison, error) + func (c *REST) CreateReview(ctx context.Context, owner, repo string, number int, req ReviewRequest) (Review, error) + func (c *REST) LatestRelease(ctx context.Context, owner, repo string) (string, error) + func (c *REST) ListIssueComments(ctx context.Context, owner, repo string, number int) ([]IssueComment, error) + func (c *REST) ListReviewThreads(ctx context.Context, owner, repo string, number int) ([]ReviewThread, error) + func (c *REST) ListReviews(ctx context.Context, owner, repo string, number int) ([]Review, error) + func (c *REST) PullRequest(ctx context.Context, owner, repo string, number int) (PullRequest, error) + func (c *REST) PullRequestCommits(ctx context.Context, owner, repo string, number int) ([]Commit, error) + func (c *REST) PullRequestsForBranch(ctx context.Context, owner, repo, headOwner, branch string) ([]PullRequest, error) + func (c *REST) TokenKind() TokenKind + func (c *REST) UpdateReview(ctx context.Context, owner, repo string, number int, id int64, body string) (Review, error) + func (c *REST) Viewer(ctx context.Context) (string, error) + type Review struct + Body string + CommitID string + HTMLURL string + ID int64 + State string + SubmittedAt time.Time + User string + type ReviewComment struct + Body string + Line int + Path string + Side string + StartLine int + StartSide string + type ReviewRequest struct + Body string + Comments []ReviewComment + CommitID string + Event string + type ReviewThread struct + Comments []ThreadComment + Line int + OriginalLine int + Outdated bool + Path string + Resolved bool + Side string + type ThreadComment struct + Body string + CreatedAt time.Time + ReviewID int64 + URL string + User string + type TokenKind string + const Installation + const User