Documentation
¶
Index ¶
- type Client
- func (c *Client) LatestRelease(ctx context.Context, owner, repo string) (string, error)
- func (c *Client) LatestTag(ctx context.Context, owner, repo string) (string, error)
- func (c *Client) ListTags(ctx context.Context, owner, repo string) ([]Tag, error)
- func (c *Client) ResolveTagSHA(ctx context.Context, owner, repo, ref string) (string, error)
- type Release
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
HTTPClient *http.Client
Token string
BaseURL string // default: https://api.github.com
}
Client communicates with the GitHub REST API.
func (*Client) LatestRelease ¶
LatestRelease returns the latest non-prerelease, non-draft release tag.
Click to show internal directories.
Click to hide internal directories.