Documentation
¶
Index ¶
- Variables
- type Client
- 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)
- type Issue
- type PullRequest
- type Repo
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized is returned when GitHub responds with 401.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides minimal GitHub REST API access used by MCP tools.
func New ¶
New creates a new Client for the given GitHub domain. If domain is empty or github.com, it targets public GitHub; otherwise Enterprise base.
func (*Client) ListRepoIssues ¶
func (c *Client) ListRepoIssues(ctx context.Context, token, owner, name, state string) ([]Issue, error)
ListRepoIssues lists issues for a repository.
func (*Client) ListRepoPRs ¶
func (c *Client) ListRepoPRs(ctx context.Context, token, owner, name, state string) ([]PullRequest, error)
ListRepoPRs lists pull requests for a repository.