Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitedError ¶
RateLimitedError is returned for any GitHub call that hit a rate / abuse limit. The Authenticated bit lets callers tailor the message.
func (*RateLimitedError) Error ¶
func (e *RateLimitedError) Error() string
func (*RateLimitedError) Unwrap ¶
func (e *RateLimitedError) Unwrap() error
type Resolver ¶
type Resolver struct {
GH *github.Client
Authenticated bool
// contains filtered or unexported fields
}
Resolver wraps a GitHub client and tracks whether it is authenticated. It memoizes successful lookups in-process and uses singleflight to dedupe concurrent identical lookups.
func (*Resolver) LatestReleaseSHA ¶
LatestReleaseSHA returns the SHA pointed at by the most recent tag on owner/repo. Falls back to the default branch HEAD if the repo has no tags. Successful results are memoized; concurrent identical lookups share one API call via singleflight.
We use ListTags because not every action publishes formal "releases" — many just tag.