提交 efa3ce7c 编写于 作者: M Mislav Marohnić

Consolidate `github.PullRequest` structs

上级 9f83b387
......@@ -231,7 +231,7 @@ func pullRequest(cmd *Command, args *Args) {
utils.Check(err)
pullRequestURL = pr.HTMLURL
pullRequestURL = pr.HtmlUrl
if flagPullRequestAssignee != "" || flagPullRequestMilestone > 0 ||
flagPullRequestLabels != "" {
......
......@@ -94,8 +94,9 @@ func (client *Client) PullRequestPatch(project *Project, id string) (patch io.Re
}
type PullRequest struct {
ApiUrl string `json:"url"`
Number int `json:"number"`
HTMLURL string `json:"html_url"`
HtmlUrl string `json:"html_url"`
}
func (client *Client) CreatePullRequest(project *Project, params map[string]interface{}) (pr *PullRequest, err error) {
......@@ -443,11 +444,6 @@ type User struct {
Login string `json:"login"`
}
type PullRequest struct {
ApiUrl string `json:"url"`
HtmlUrl string `json:"html_url"`
}
func (client *Client) FetchIssues(project *Project, filterParams map[string]interface{}) (issues []Issue, err error) {
api, err := client.simpleApi()
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册