From e3ad13b2f318e0ed5272c5b213417868617001d8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 2 Aug 2016 11:59:54 -0700 Subject: [PATCH] BREAK CHANGES: rename argument type for issue APIs int -> int64 --- issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/issue.go b/issue.go index 69e5c2e..da0ca83 100644 --- a/issue.go +++ b/issue.go @@ -41,7 +41,7 @@ func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Iss return issues, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues?page=%d", owner, repo, opt.Page), nil, nil, &issues) } -func (c *Client) GetIssue(owner, repo string, index int) (*Issue, error) { +func (c *Client) GetIssue(owner, repo string, index int64) (*Issue, error) { issue := new(Issue) return issue, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/%d", owner, repo, index), nil, nil, issue) } @@ -72,7 +72,7 @@ type EditIssueOption struct { Milestone *int64 `json:"milestone"` } -func (c *Client) EditIssue(owner, repo string, index int, opt EditIssueOption) (*Issue, error) { +func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, error) { body, err := json.Marshal(&opt) if err != nil { return nil, err