Versions in this module Expand all Collapse all v0 v0.7.2 May 4, 2026 v0.7.1 May 3, 2026 v0.7.0 May 1, 2026 v0.6.4 Apr 23, 2026 v0.6.3 Apr 14, 2026 v0.6.2 Apr 14, 2026 v0.6.1 Apr 4, 2026 v0.6.0 Mar 31, 2026 Changes in this version type Client + func (c *Client) ListPRCommits(ctx context.Context, owner, repo string, number int) ([]PRCommit, error) type Fetcher + func (f *Fetcher) ListPRCommits(ctx context.Context, owner, repo string, number int) ([]ledger.FetchedPRCommit, error) + type PRCommit struct + Author string + Date time.Time + Msg string + SHA string v0.5.1 Mar 16, 2026 v0.5.0 Mar 15, 2026 Changes in this version + var ErrGitHubAuth = errors.New("github authentication failed") + var ErrGitHubRateLimited = errors.New("github rate limited") + func ParseGitHubRemote(remoteURL string) (owner, repo string, ok bool) + type Client struct + func NewClient(token string) *Client + func (c *Client) ListIssueComments(ctx context.Context, owner, repo string, number int) ([]Comment, error) + func (c *Client) ListIssues(ctx context.Context, owner, repo string, opts ListIssuesOptions) ([]Issue, *RateLimit, error) + func (c *Client) ListPRComments(ctx context.Context, owner, repo string, number int) ([]Comment, error) + func (c *Client) ListPullRequests(ctx context.Context, owner, repo string, opts ListPRsOptions) ([]PullRequest, *RateLimit, error) + type Comment struct + Body string + CreatedAt time.Time + ID int64 + Line *int + Path string + User GitHubUser + type Fetcher struct + func NewFetcher(c *Client) *Fetcher + func (f *Fetcher) ListIssueComments(ctx context.Context, owner, repo string, number int) ([]ledger.FetchedComment, error) + func (f *Fetcher) ListIssues(ctx context.Context, owner, repo string, opts ledger.ListIssuesOptions) ([]ledger.FetchedIssue, *ledger.FetchRateLimit, error) + func (f *Fetcher) ListPRComments(ctx context.Context, owner, repo string, number int) ([]ledger.FetchedComment, error) + func (f *Fetcher) ListPullRequests(ctx context.Context, owner, repo string, opts ledger.ListPRsOptions) ([]ledger.FetchedPR, *ledger.FetchRateLimit, error) + type GitHubUser struct + Login string + type Issue struct + Body string + ClosedAt *time.Time + CreatedAt time.Time + HTMLURL string + Labels []Label + Number int + PullRequest *struct{} + State string + Title string + UpdatedAt time.Time + User GitHubUser + type Label struct + Name string + type ListIssuesOptions struct + Direction string + Page int + PerPage int + Since time.Time + Sort string + State string + type ListPRsOptions struct + Direction string + Page int + PerPage int + Since time.Time + Sort string + State string + type PullRequest struct + Body string + CreatedAt time.Time + Draft bool + HTMLURL string + Labels []Label + MergeSHA string + MergedAt *time.Time + Number int + State string + Title string + UpdatedAt time.Time + User GitHubUser + type RateLimit struct + Limit int + Remaining int + Reset time.Time