Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientService ¶
type ClientService interface {
GetOwner(repository string) string
PullRequestByCommitRepo(owner, repo, sha string) ([]*PullRequest, error)
DownloadFile(repository, version, file string) ([]byte, error)
CompareCommitsRepo(owner, repo, base, head string) (*CommitsComparison, error)
FirstCommit(owner, repo string) (*Commit, error)
}
ClientService client service
type CommitsComparison ¶
type CommitsComparison struct {
TotalCommits int `json:"total_commits,omitempty"`
Status string `json:"status,omitempty"`
AheadBy int `json:"ahead_by,omitempty"`
BehindBy int `json:"behind_by,omitempty"`
Commits []*Commit `json:"commits,omitempty"`
DiffURL string `json:"diff_url,omitempty"`
HTMLURL string `json:"html_url,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.