Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFullCommitSHA ¶
IsFullCommitSHA reports whether s is a complete commit SHA. A base revision must be one, because the consumers of it reject an abbreviated SHA.
Types ¶
type Resolver ¶
type Resolver interface {
// Resolve returns the full commit SHA of the tip of the queue's target
// branch as of the call. An error means the tip could not be determined,
// and a caller must not fall back to an earlier value. Implementations
// must be safe for concurrent use.
Resolve(ctx context.Context, queue string) (string, error)
}
Resolver returns the commit a queue's new batches are analyzed against.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package git resolves the base revision of a queue by asking a git workspace for the tip of the queue's target branch.
|
Package git resolves the base revision of a queue by asking a git workspace for the tip of the queue's target branch. |
|
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.
|
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. |
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.