Documentation
¶
Overview ¶
Package github is the v0 implementation of tracker.Tracker backed by GitHub Issues. Each GitHub repo becomes a tracker.Project, keyed by "owner/repo". Pull requests are filtered out of the issues list (the GitHub Issues API returns both, distinguished by a non-nil pull_request field).
Auth is bearer-token (PAT or fine-grained PAT). GitHub Enterprise Server is not supported in v0 — see internal/githost/github.
Index ¶
Constants ¶
const ( Provider = "github" DefaultBaseURL = "https://api.github.com" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements tracker.Tracker against GitHub Issues.
func (*Client) ListIssues ¶
func (c *Client) ListIssues(ctx context.Context, projectKey string, since time.Time) iter.Seq2[tracker.Issue, error]
ListIssues streams issues for projectKey ("owner/repo") updated after since (zero means everything). GitHub's /issues endpoint returns both issues and pull requests; the pull_request field discriminates the two and PR rows are dropped.
func (*Client) ListProjects ¶
ListProjects returns every repo the authed user can see whose Issues feature is enabled. Archived / disabled repos are skipped. ProjectKey is the repo's "owner/repo" full name.