Documentation
¶
Index ¶
- type Account
- type Branch
- type Client
- func (c Client) GetCommits(repoOrga string, repoSlug string, branchOrTag string, include string, ...) (*Commits, error)
- func (c Client) GetDefaultReviewers(repoOrga string, repoSlug string) (*DefaultReviewers, error)
- func (c Client) GetDownloads(repoOrga string, repoSlug string) (*Downloads, error)
- func (c Client) GetPrIDBySourceBranch(repoOrga string, repoSlug string, sourceBranch string) (*ListPullRequests, error)
- func (c Client) PrCommits(repoOrga string, repoSlug string, id string) (*Commits, error)
- func (c Client) PrCreate(repoOrga string, repoSlug string, sourceBranch string, ...) (*PullRequest, error)
- func (c Client) PrDefaultTitleAndBody(repoOrga string, repoSlug string, sourceBranch string, ...) (string, string, error)
- func (c Client) PrList(repoOrga string, repoSlug string, states []string) (*ListPullRequests, error)
- func (c Client) PrMerge(repoOrga string, repoSlug string, id string) (*PullRequest, error)
- func (c Client) PrStatuses(repoOrga string, repoSlug string, id string) (*Statuses, error)
- func (c Client) PrView(repoOrga string, repoSlug string, id string) (*PullRequest, error)
- func (c Client) RepositoryGet(repoOrga string, repoSlug string) (*Repository, error)
- func (c Client) UploadDownload(repoOrga string, repoSlug string, fpath string) (*Download, error)
- type Commit
- type Commits
- type DefaultReviewers
- type Download
- type Downloads
- type Link
- type ListPullRequests
- type PullRequest
- type Repository
- type Resource
- type Status
- type Statuses
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) GetCommits ¶
func (Client) GetDefaultReviewers ¶
func (c Client) GetDefaultReviewers(repoOrga string, repoSlug string) (*DefaultReviewers, error)
func (Client) GetDownloads ¶
func (Client) GetPrIDBySourceBranch ¶
func (Client) PrDefaultTitleAndBody ¶
func (Client) PrStatuses ¶
func (Client) RepositoryGet ¶
func (c Client) RepositoryGet(repoOrga string, repoSlug string) (*Repository, error)
type DefaultReviewers ¶
type ListPullRequests ¶
type PullRequest ¶
type PullRequest struct {
ID int `mapstructure:"id"`
Title string `mapstructure:"title"`
State string `mapstructure:"state"`
Source Resource `mapstructure:"source"`
Destination Resource `mapstructure:"destination"`
Type string `mapstructure:"type"`
TaskCount int `mapstructure:"task_count"`
Description string `mapstructure:"description"`
Author Account `mapstructure:"author"`
CloseSourceBranch bool `mapstructure:"close_source_branch"`
CommentCount int `mapstructure:"comment_count"`
CreatedOn string `mapstructure:"created_on"`
MergeCommit Commit `mapstructure:"merge_commit"`
Reviewers []Account `mapstructure:"reviewers"`
Links map[string]Link `mapstructure:"links"`
}
type Repository ¶
type Repository struct {
Links map[string]interface{} `mapstructure:"Links"`
UUID string `mapstructure:"Uuid"`
FullName string `mapstructure:"FullName"`
IsPrivate bool `mapstructure:"IsPrivate"`
Parent *Repository `mapstructure:"Parent"`
Owner *Account `mapstructure:"Owner"`
Name string `mapstructure:"Name"`
Description string `mapstructure:"Description"`
CreatedOn time.Time `mapstructure:"CreatedOn"`
UpdatedOn time.Time `mapstructure:"UpdatedOn"`
Size int `mapstructure:"Size"`
Language string `mapstructure:"Language"`
HasIssues bool `mapstructure:"HasIssues"`
HasWiki bool `mapstructure:"HasWiki"`
ForkPolicy string `mapstructure:"ForkPolicy"`
MainBranch *Branch `mapstructure:"Mainbranch"`
}
type Resource ¶
type Resource struct {
Branch Branch `mapstructure:"branch"`
Commit Commit `mapstructure:"commit"`
Repository Repository `mapstructure:"repository"`
}
type Status ¶
type Status struct {
Type string `mapstructure:"type"`
Links map[string]interface{} `mapstructure:"links"`
UUID string `mapstructure:"uuid"`
Key string `mapstructure:"key"`
Refname string `mapstructure:"refname"`
URL string `mapstructure:"url"`
State string `mapstructure:"state"`
Name string `mapstructure:"name"`
Description string `mapstructure:"description"`
CreatedOn string `mapstructure:"created_on"`
UpdatedOn string `mapstructure:"updated_on"`
}
Click to show internal directories.
Click to hide internal directories.