Documentation
¶
Overview ¶
Package github implements a polling Source backed by the GitHub Actions API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallationID ¶
InstallationID resolves the App's installation for a's target (org or repo) via a JWT-only client. Shared by every source that authenticates as the App.
func ListInstallationRepos ¶
ListInstallationRepos paginates through all repos the App installation can access.
Types ¶
type AppAuth ¶
type AppAuth struct {
AppID int64
PrivateKeyPath string
Org string
// Owner/Repo name a single repo target (personal-account or per-repo).
Owner string
Repo string
// Repos optionally restricts an org target's polling to these repo names;
// empty polls all installation repos. Unused for repo targets.
Repos []string
}
AppAuth identifies a GitHub App installation. It is either org-scoped (Org set) or repo-scoped (Owner+Repo set, for personal-account repos that have no org-level runner pool). Exactly one form is populated.
func ParseScope ¶
ParseScope is Scope's inverse: a valid "owner/repo" → repo target, else org target. Kept beside Scope, built on the canonical grammar in domain.
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller polls every configured org's repos for queued workflow runs and emits each queued job as a domain.Job, deduped by job ID across polls; a job still queued past redispatchAfter is re-emitted.