Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface {
pull.Context
// DefaultBranch returns the default branch of the repo that the pull
// request targets.
DefaultBranch() string
// DownloadCode downloads the code to a temporary directory and returns its
// path and a cleanup function.
DownloadCode() (path string, cleanup func(), err error)
// LatestDetailedStatuses returns a map of status check names to the latest
// detailed result
LatestDetailedStatuses() (map[string]*github.RepoStatus, error)
}
type GitHubContext ¶
func (*GitHubContext) DefaultBranch ¶
func (ghc *GitHubContext) DefaultBranch() string
func (*GitHubContext) DownloadCode ¶
func (ghc *GitHubContext) DownloadCode() (string, func(), error)
func (*GitHubContext) LatestDetailedStatuses ¶
func (ghc *GitHubContext) LatestDetailedStatuses() (map[string]*github.RepoStatus, error)
Click to show internal directories.
Click to hide internal directories.