Documentation ¶
Overview ¶
Package github implements a client SDK for the Github API.
Index ¶
Constants ¶
View Source
const ( // ErrNotFound indicates the resource does not exists. ErrNotFound errors.Kind = "resource not found (HTTP Status: 404)" // ErrUnprocessableEntity indicates the entity cannot be processed for any reason. ErrUnprocessableEntity errors.Kind = "entity cannot be processed (HTTP Status: 422)" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // BaseURL is the base URL used to construct the final URL of endpoints. // If not set, then api.github.com is used. BaseURL string // HTTPClient sets the HTTP client used and then allows for advanced // connection reuse schemes. If not set, a new http.Client is used. HTTPClient *http.Client // Token is the Github token (usually provided by the GH_TOKEN environment // variable. Token string }
Client is a Github HTTP client wrapper.
type Pull ¶
type Pull struct { URL string `json:"url"` HTMLURL string `json:"html_url"` Number int `json:"number"` Title string `json:"title"` Body string `json:"body"` State string `json:"state"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` HEAD PullRequestHEAD `json:"head"` }
Pull represents a pull request object.
type PullRequestHEAD ¶
PullRequestHEAD contains metadata for the PR HEAD.
Click to show internal directories.
Click to hide internal directories.