Documentation
¶
Overview ¶
Package github resolves the base revision of a queue by asking the GitHub REST API for the tip of the queue's target branch, so it needs no clone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(params Params) baserevision.Resolver
New returns a Resolver that reads the target branch tip of each queue from GitHub as of the call. A queue without a target, or any API failure, is an error.
Types ¶
type Params ¶
type Params struct {
// HTTPClient resolves a relative path against the GitHub API root and
// carries the credentials, as with the GitHub change provider.
HTTPClient *http.Client
// Targets maps each queue to its target branch.
Targets map[string]Target
}
Params are the dependencies of a Resolver.