Documentation
¶
Index ¶
- type Client
- func (c *Client) HasToken() bool
- func (c *Client) LatestRelease(ctx context.Context, owner, repo string) (string, error)
- func (c *Client) RateLimitHit() bool
- func (c *Client) ResolveTagSHA(ctx context.Context, owner, repo, tag string) (string, error)
- func (c *Client) VerifyCommit(ctx context.Context, owner, repo, sha string) (bool, error)
- type Option
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
}
func (*Client) HasToken ¶ added in v0.2.0
HasToken reports whether the client was configured with a GitHub token.
func (*Client) LatestRelease ¶ added in v0.6.0
LatestRelease fetches the latest release tag name for the given repository.
func (*Client) RateLimitHit ¶ added in v0.2.0
RateLimitHit reports whether any API call encountered a rate limit error.
func (*Client) ResolveTagSHA ¶
ResolveTagSHA resolves a git tag to its underlying commit SHA. For annotated tags, it dereferences the tag object to find the commit. Results are cached to avoid duplicate API calls for the same owner/repo@tag.
Click to show internal directories.
Click to hide internal directories.