Documentation
¶
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 is a thin GitHub REST API client. It reads GITHUB_TOKEN from the environment and sends it as a Bearer token when present.
func (*Client) ListBranches ¶
ListBranches returns the branch names for owner/repo.
func (*Client) ListTags ¶
ListTags returns semver tags for owner/repo sorted descending (newest first).
func (*Client) SearchByTopic ¶
func (c *Client) SearchByTopic(term string) ([]SearchResult, error)
SearchByTopic queries the GitHub repository search API for repos tagged with the melon-skill topic that match term.
type SearchResult ¶
type SearchResult struct {
// Name is the installable GitHub path, e.g. "github.com/owner/repo".
Name string
Description string
Owner string
}
SearchResult is a repository returned by the GitHub search API.
Click to show internal directories.
Click to hide internal directories.