Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignee ¶
type Assignee struct {
Login string `csv:"Assignee" json:"login,omitempty"`
}
Assignee is a user.
type GetOrgRepoParams ¶
GetOrgRepoParams is parameters for GetOrgRepos.
type GetPullParams ¶
GetPullParams is parameters for GetPull.
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient is a HTTPClient.
func NewHTTPClient ¶
func NewHTTPClient(httpClient *http.Client) *HTTPClient
NewHTTPClient creates a HTTPClient
type HandlerPull ¶
type HandlerPull struct {
// contains filtered or unexported fields
}
HandlerPull is a handler for pulls.
func NewHandlerPull ¶
func NewHandlerPull(httpClient *HTTPClient) *HandlerPull
NewHandlerPull creates a handler.
func (*HandlerPull) GetPullsByAssignee ¶
func (hp *HandlerPull) GetPullsByAssignee(assignee string, owner string, repo string, params GetPullParams) ([]*PullRequest, error)
GetPulls gets pulls by assignee.
type HandlerRepo ¶
type HandlerRepo struct {
// contains filtered or unexported fields
}
HandlerRepo is a handler for repos.
func NewHandlerRepo ¶
func NewHandlerRepo(httpClient *HTTPClient) *HandlerRepo
NewHandlerRepo creates a handler.
func (*HandlerRepo) GetOrgRepos ¶
func (hr *HandlerRepo) GetOrgRepos(org string, params GetOrgRepoParams) ([]*Repository, error)
GetOrgsRepos get organization repositories.
type PullRequest ¶
type PullRequest struct { ID int64 `json:"id,omitempty"` Number int `json:"number,omitempty"` State string `json:"state,omitempty"` Title string `json:"title,omitempty"` Body string `json:"body,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` ClosedAt *time.Time `json:"closed_at,omitempty"` HTMLURL string `json:"html_url,omitempty"` Assignee *Assignee `csv:"-"` }
PullRequest is a pull request. see: https://github.com/google/go-github/blob/master/github/pulls.go
Click to show internal directories.
Click to hide internal directories.