Documentation
¶
Overview ¶
Package github is a minimal GitHub API client covering only the endpoints notifycat needs for validation. It is intentionally narrow — adding a new endpoint means adding one method, not pulling in go-github.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client talks to the GitHub REST API.
func NewClient ¶
NewClient builds a Client. The httpClient is used as-is; callers should configure timeouts on it.
func (*Client) ListHookEvents ¶
func (c *Client) ListHookEvents(ctx context.Context, owner, repo, urlSuffix string) ([]string, error)
ListHookEvents returns the union of events configured across active hooks pointing at notifycat (matched by `urlSuffix` against hook.config.url). Returns an empty slice when no matching hook exists, so callers can distinguish "no notifycat hook" from "hook misconfigured".
func (*Client) ListOrgRepos ¶
ListOrgRepos returns the names of every repository in the org, following GitHub's Link header for pagination. Empty result is a normal outcome (org with no repos or all repos filtered by token scope).