diff --git a/commands/pull_request.go b/commands/pull_request.go index 514d4be3a8d3b4e3a6a7361df2e2faa941b225b1..cf42e08e9f743f93014250d73e90212f70ee08af 100644 --- a/commands/pull_request.go +++ b/commands/pull_request.go @@ -231,7 +231,7 @@ func pullRequest(cmd *Command, args *Args) { utils.Check(err) - pullRequestURL = pr.HTMLURL + pullRequestURL = pr.HtmlUrl if flagPullRequestAssignee != "" || flagPullRequestMilestone > 0 || flagPullRequestLabels != "" { diff --git a/github/client.go b/github/client.go index 9541576309df6f600f8d71dfbff47c5d09aab4b3..a0d18bc24bad1cf6acc0fb64274cf65fa5a57bcb 100644 --- a/github/client.go +++ b/github/client.go @@ -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 {