Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
Types ¶
type ApiResponse ¶
type PullRequestResponse ¶
type PullRequestResponse struct { ID int `json:"id"` Title string `json:"title"` State string `json:"state"` Head struct { Ref string `json:"ref"` } `json:"head"` HtmlURL string `json:"html_url"` }
func FindPullRequest ¶
func FindPullRequest(projectPath string, token string, branch string) (PullRequestResponse, error)
type UserResponse ¶
type UserResponse struct {
ID int `json:"id"`
}
func User ¶
func User(token string) (UserResponse, error)
Click to show internal directories.
Click to hide internal directories.