Documentation
¶
Overview ¶
Package provider holds the types shared by the service layer and the git bridge for shipping changes to a git host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoPullRequests = errors.New("this provider has no pull requests")
ErrNoPullRequests means the provider cannot open pull requests (plain git).
var ErrNotFound = errors.New("no such pull request on the host")
ErrNotFound means the host has no such pull request.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
Tree hash.Hash
Message string
AuthorName string
AuthorEmail string
When time.Time
}
Commit is one commit to write: a vx tree and its metadata.
type OpenedPR ¶
type OpenedPR struct {
Number int
URL string
Updated bool // an open PR for the branch existed and was updated
}
OpenedPR is the provider's answer.
type PRInfo ¶ added in v0.4.0
type PRInfo struct {
Number int
URL string
State PRState
Head string // source branch
Base string // target branch
}
PRInfo is a pull request as the host reports it.