Versions in this module Expand all Collapse all v0 v0.2.0 Jul 28, 2026 v0.1.0 Jul 27, 2026 Changes in this version + var ErrIssueIsPR = errIssueIsPR + var ErrNotFound = goerr.New("github resource not found") + func New(client *Client) []gollem.Tool + type Client struct + func NewClient(appID, installationID int64, privateKey string) (*Client, error) + func (c *Client) FetchRecentIssues(ctx context.Context, owner, repo string, since time.Time) iter.Seq2[*Issue, error] + func (c *Client) FetchRecentPullRequests(ctx context.Context, owner, repo string, since time.Time) iter.Seq2[*PullRequest, error] + func (c *Client) FetchUpdatedIssueComments(ctx context.Context, owner, repo string, since time.Time, ...) iter.Seq2[*IssueWithComments, error] + func (c *Client) GetFileContent(ctx context.Context, owner, repo, path, ref string) (*FileContent, error) + func (c *Client) GetIssue(ctx context.Context, owner, repo string, number int) (*Issue, error) + func (c *Client) GetPullRequestDetail(ctx context.Context, owner, repo string, number int, includeFiles bool) (*PullRequestDetail, error) + func (c *Client) ListCommits(ctx context.Context, opts ListCommitsOptions) (*CommitList, error) + func (c *Client) SearchIssuesAndPRs(ctx context.Context, opts SearchOptions) (*SearchResult, error) + func (c *Client) ValidateRepository(ctx context.Context, owner, repo string) (*RepositoryValidation, error) + type Comment struct + Author string + Body string + CreatedAt time.Time + URL string + type Commit struct + AuthorEmail string + AuthorLogin string + AuthorName string + AuthoredDate time.Time + CommitterDate time.Time + Message string + SHA string + URL string + type CommitList struct + Items []Commit + type FileChange struct + Additions int + Deletions int + Patch string + PatchTruncated bool + Path string + Status string + type FileContent struct + Content string + IsBinary bool + Path string + Ref string + Size int64 + Truncated bool + type Issue struct + Author string + Body string + ClosedAt *time.Time + Comments []Comment + CreatedAt time.Time + Labels []string + Number int + State string + Title string + URL string + UpdatedAt time.Time + type IssueWithComments struct + Author string + Body string + Comments []Comment + CreatedAt time.Time + IsPR bool + Number int + Since time.Time + State string + Title string + URL string + type ListCommitsOptions struct + Author string + Owner string + Path string + PerPage int + Ref string + Repo string + Since time.Time + Until time.Time + type PullRequest struct + Author string + Body string + Comments []Comment + CreatedAt time.Time + Labels []string + Number int + Reviews []Review + State string + Title string + URL string + type PullRequestDetail struct + BaseRef string + ClosedAt *time.Time + Draft bool + Files []FileChange + HeadRef string + Merged bool + UpdatedAt time.Time + type RepositoryValidation struct + CanFetchIssues bool + CanFetchPullRequests bool + Description string + ErrorMessage string + FullName string + IsPrivate bool + IssueCount int + Owner string + PullRequestCount int + Repo string + Valid bool + type Review struct + Author string + Body string + CreatedAt time.Time + State string + type SearchHit struct + Author string + CreatedAt time.Time + IsPR bool + Labels []string + Number int + RepoName string + RepoOwner string + State string + Title string + URL string + type SearchOptions struct + PerPage int + Query string + Type string + type SearchResult struct + Items []SearchHit + Total int