Documentation
¶
Overview ¶
Package githubactions implements the GitHub Actions connector. It populates the builds and build_jobs tables from the Workflow Runs / Jobs APIs and the deploys table (source=github_actions) from the Deployments API.
The connector shares the github connector's token by default; configuration is applied during config.Load so this package treats cfg.Token as authoritative. Same API host as github, so no separate credential is needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config = config.GitHubActionsConn
Config is an alias exported for symmetry with other connectors.
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector implements the github_actions connector.
func New ¶
New constructs a Connector. The supplied token is treated as authoritative; inheritance from [connectors.github] is applied during config Load.
func (*Connector) BudgetSnapshot ¶ added in v0.4.4
func (c *Connector) BudgetSnapshot() map[string]ratelimit.BudgetState
BudgetSnapshot returns the current rate-limit budget for this connector.
func (*Connector) Extract ¶
func (c *Connector) Extract(ctx context.Context, repo connector.Repo, window connector.Window, sink connector.Sink) connector.Provenance
Extract pulls workflow runs (builds + build_jobs) and deployments (deploys, source=github_actions) for the given repo within window. Errors are recorded on the returned provenance rather than panicking; per-table row counts are tallied as rows are emitted.