Skip to content

Commit e3ad13b

Browse files
committed
BREAK CHANGES: rename argument type for issue APIs
int -> int64
1 parent 181ccc6 commit e3ad13b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Iss
4141
return issues, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues?page=%d", owner, repo, opt.Page), nil, nil, &issues)
4242
}
4343

44-
func (c *Client) GetIssue(owner, repo string, index int) (*Issue, error) {
44+
func (c *Client) GetIssue(owner, repo string, index int64) (*Issue, error) {
4545
issue := new(Issue)
4646
return issue, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/%d", owner, repo, index), nil, nil, issue)
4747
}
@@ -72,7 +72,7 @@ type EditIssueOption struct {
7272
Milestone *int64 `json:"milestone"`
7373
}
7474

75-
func (c *Client) EditIssue(owner, repo string, index int, opt EditIssueOption) (*Issue, error) {
75+
func (c *Client) EditIssue(owner, repo string, index int64, opt EditIssueOption) (*Issue, error) {
7676
body, err := json.Marshal(&opt)
7777
if err != nil {
7878
return nil, err

0 commit comments

Comments
 (0)