Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Repos []string // "owner/repo" format
APIURL string // override for testing (default: https://api.github.com)
}
Config configures a GitHubSource.
type GitHubSource ¶
type GitHubSource struct {
// contains filtered or unexported fields
}
GitHubSource polls GitHub for pipeline signals from epic issues.
func NewGitHubSource ¶
func NewGitHubSource(cfg Config) *GitHubSource
NewGitHubSource creates a GitHubSource from the given config.
func (*GitHubSource) Name ¶
func (g *GitHubSource) Name() string
Name returns the source identifier.
func (*GitHubSource) Poll ¶
func (g *GitHubSource) Poll(ctx context.Context) ([]*jobrunner.PipelineSignal, error)
Poll fetches epics and their linked PRs from all configured repositories, returning a PipelineSignal for each unchecked child that has a linked PR.
func (*GitHubSource) Report ¶
func (g *GitHubSource) Report(_ context.Context, _ *jobrunner.ActionResult) error
Report is a no-op for the GitHub source.
Click to show internal directories.
Click to hide internal directories.