Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrgKind = "org" GroupKind = "group" UserKind = "user" EnterpriseKind = "enterprise" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeHostClient ¶
type CodeHostClient interface { ListBranches(opt ListOpt) ([]*Branch, error) ListTags(opt ListOpt) ([]*Tag, error) ListPrs(opt ListOpt) ([]*PullRequest, error) ListNamespaces(keyword string) ([]*Namespace, error) ListProjects(opt ListOpt) ([]*Project, error) ListCommits(opt ListOpt) ([]*Commit, error) }
type PullRequest ¶
type PullRequest struct { ID int `json:"id"` TargetBranch string `json:"targetBranch"` SourceBranch string `json:"sourceBranch"` ProjectID int `json:"projectId"` Title string `json:"title"` State string `json:"state"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` AuthorUsername string `json:"authorUsername"` Number int `json:"number"` User string `json:"user"` Base string `json:"base,omitempty"` }
Click to show internal directories.
Click to hide internal directories.