Versions in this module Expand all Collapse all v0 v0.1.1 Nov 3, 2025 v0.1.0 Oct 31, 2025 Changes in this version + var ErrUnauthorized = errors.New("unauthorized") + type Client struct + func New(domain string) *Client + func (c *Client) AddComment(ctx context.Context, token, owner, name string, issueNumber int, body string) (Comment, error) + func (c *Client) CreateIssue(ctx context.Context, token, owner, name, title, body string, ...) (Issue, error) + func (c *Client) CreatePR(ctx context.Context, token, owner, name, title, body, head, base string, ...) (PullRequest, error) + func (c *Client) GetBlob(ctx context.Context, token, owner, name, sha string) ([]byte, error) + func (c *Client) GetCommitTreeSHA(ctx context.Context, token, owner, name, ref string) (string, error) + func (c *Client) GetFileContent(ctx context.Context, token, owner, name, path, ref string) ([]byte, error) + func (c *Client) GetRepoDefaultBranch(ctx context.Context, token, owner, name string) (string, error) + func (c *Client) GetTreeRecursive(ctx context.Context, token, owner, name, treeSha string) ([]TreeEntry, bool, error) + func (c *Client) ListComments(ctx context.Context, token, owner, name string, issueNumber int) ([]Comment, error) + func (c *Client) ListContents(ctx context.Context, token, owner, name, path, ref string) ([]ContentItem, error) + func (c *Client) ListRepoIssues(ctx context.Context, token, owner, name, state string) ([]Issue, error) + func (c *Client) ListRepoPRs(ctx context.Context, token, owner, name, state string) ([]PullRequest, error) + func (c *Client) ListRepos(ctx context.Context, token, visibility, affiliation string, perPage int) ([]Repo, error) + func (c *Client) SearchIssues(ctx context.Context, token, query string, perPage int) ([]Issue, error) + func (c *Client) ValidateRef(ctx context.Context, token, owner, name, ref string) error + func (c *Client) ValidateToken(ctx context.Context, token string) error + type Comment struct + Body string + CreatedAt string + ID int64 + User string + type ContentItem struct + DownloadURL string + Name string + Path string + Sha string + Size int + Type string + type Issue struct + ID int64 + Number int + State string + Title string + type PullRequest struct + ID int64 + Number int + State string + Title string + type Repo struct + FullName string + ID int64 + Name string + type TreeEntry struct + Mode string + Path string + Sha string + Size int + Type string + Url string