Documentation
¶
Overview ¶
Package github provides helpers for GitHub Actions references and API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionRef ¶
ActionRef represents a parsed GitHub Action reference "owner/repo@version".
func ParseActionRef ¶
ParseActionRef parses a GitHub Actions `uses` string like "owner/repo@v1".
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the go-github client with a rate limiter and datastore.
func (*Client) FindLatestActionTag ¶
func (gc *Client) FindLatestActionTag( ctx context.Context, action *ActionRef, opts ...FindLatestOption, ) (string, error)
FindLatestActionTag returns the latest tag for the given GitHub Action based on provided options.
type FindLatestOption ¶
type FindLatestOption func(*findLatestOptions)
FindLatestOption configures how to select the latest tag for an action.
func WithExcludes ¶
func WithExcludes(excludes map[string]struct{}) FindLatestOption
WithExcludes ignores any tags present in the provided set.
func WithUpdateOptions ¶
func WithUpdateOptions(opts ...updater.Option) FindLatestOption
WithUpdateOptions forwards semver comparison options to the update strategy.
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater queries GitHub to find suitable latest action tags.
func NewUpdater ¶
func NewUpdater(client *Client, opts ...FindLatestOption) Updater
NewUpdater constructs an Updater using the provided Client and options.