Skip to content

Commit d24afe1

Browse files
mspiegelgmlewis
authored andcommitted
Replace int id with int64 in OrganizationsService (google#883)
1 parent db88226 commit d24afe1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

github/issues_comments.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (s *IssuesService) ListComments(ctx context.Context, owner string, repo str
7979
// GetComment fetches the specified issue comment.
8080
//
8181
// GitHub API docs: https://developer.github.com/v3/issues/comments/#get-a-single-comment
82-
func (s *IssuesService) GetComment(ctx context.Context, owner string, repo string, id int) (*IssueComment, *Response, error) {
82+
func (s *IssuesService) GetComment(ctx context.Context, owner string, repo string, id int64) (*IssueComment, *Response, error) {
8383
u := fmt.Sprintf("repos/%v/%v/issues/comments/%d", owner, repo, id)
8484

8585
req, err := s.client.NewRequest("GET", u, nil)
@@ -120,7 +120,7 @@ func (s *IssuesService) CreateComment(ctx context.Context, owner string, repo st
120120
// EditComment updates an issue comment.
121121
//
122122
// GitHub API docs: https://developer.github.com/v3/issues/comments/#edit-a-comment
123-
func (s *IssuesService) EditComment(ctx context.Context, owner string, repo string, id int, comment *IssueComment) (*IssueComment, *Response, error) {
123+
func (s *IssuesService) EditComment(ctx context.Context, owner string, repo string, id int64, comment *IssueComment) (*IssueComment, *Response, error) {
124124
u := fmt.Sprintf("repos/%v/%v/issues/comments/%d", owner, repo, id)
125125
req, err := s.client.NewRequest("PATCH", u, comment)
126126
if err != nil {
@@ -138,7 +138,7 @@ func (s *IssuesService) EditComment(ctx context.Context, owner string, repo stri
138138
// DeleteComment deletes an issue comment.
139139
//
140140
// GitHub API docs: https://developer.github.com/v3/issues/comments/#delete-a-comment
141-
func (s *IssuesService) DeleteComment(ctx context.Context, owner string, repo string, id int) (*Response, error) {
141+
func (s *IssuesService) DeleteComment(ctx context.Context, owner string, repo string, id int64) (*Response, error) {
142142
u := fmt.Sprintf("repos/%v/%v/issues/comments/%d", owner, repo, id)
143143
req, err := s.client.NewRequest("DELETE", u, nil)
144144
if err != nil {

github/orgs_hooks.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *OrganizationsService) ListHooks(ctx context.Context, org string, opt *L
3737
// GetHook returns a single specified Hook.
3838
//
3939
// GitHub API docs: https://developer.github.com/v3/orgs/hooks/#get-single-hook
40-
func (s *OrganizationsService) GetHook(ctx context.Context, org string, id int) (*Hook, *Response, error) {
40+
func (s *OrganizationsService) GetHook(ctx context.Context, org string, id int64) (*Hook, *Response, error) {
4141
u := fmt.Sprintf("orgs/%v/hooks/%d", org, id)
4242
req, err := s.client.NewRequest("GET", u, nil)
4343
if err != nil {
@@ -71,7 +71,7 @@ func (s *OrganizationsService) CreateHook(ctx context.Context, org string, hook
7171
// EditHook updates a specified Hook.
7272
//
7373
// GitHub API docs: https://developer.github.com/v3/orgs/hooks/#edit-a-hook
74-
func (s *OrganizationsService) EditHook(ctx context.Context, org string, id int, hook *Hook) (*Hook, *Response, error) {
74+
func (s *OrganizationsService) EditHook(ctx context.Context, org string, id int64, hook *Hook) (*Hook, *Response, error) {
7575
u := fmt.Sprintf("orgs/%v/hooks/%d", org, id)
7676
req, err := s.client.NewRequest("PATCH", u, hook)
7777
if err != nil {
@@ -85,7 +85,7 @@ func (s *OrganizationsService) EditHook(ctx context.Context, org string, id int,
8585
// PingHook triggers a 'ping' event to be sent to the Hook.
8686
//
8787
// GitHub API docs: https://developer.github.com/v3/orgs/hooks/#ping-a-hook
88-
func (s *OrganizationsService) PingHook(ctx context.Context, org string, id int) (*Response, error) {
88+
func (s *OrganizationsService) PingHook(ctx context.Context, org string, id int64) (*Response, error) {
8989
u := fmt.Sprintf("orgs/%v/hooks/%d/pings", org, id)
9090
req, err := s.client.NewRequest("POST", u, nil)
9191
if err != nil {
@@ -97,7 +97,7 @@ func (s *OrganizationsService) PingHook(ctx context.Context, org string, id int)
9797
// DeleteHook deletes a specified Hook.
9898
//
9999
// GitHub API docs: https://developer.github.com/v3/orgs/hooks/#delete-a-hook
100-
func (s *OrganizationsService) DeleteHook(ctx context.Context, org string, id int) (*Response, error) {
100+
func (s *OrganizationsService) DeleteHook(ctx context.Context, org string, id int64) (*Response, error) {
101101
u := fmt.Sprintf("orgs/%v/hooks/%d", org, id)
102102
req, err := s.client.NewRequest("DELETE", u, nil)
103103
if err != nil {

github/repos_keys.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (s *RepositoriesService) CreateKey(ctx context.Context, owner string, repo
7979
// EditKey edits a deploy key.
8080
//
8181
// GitHub API docs: https://developer.github.com/v3/repos/keys/#edit
82-
func (s *RepositoriesService) EditKey(ctx context.Context, owner string, repo string, id int, key *Key) (*Key, *Response, error) {
82+
func (s *RepositoriesService) EditKey(ctx context.Context, owner string, repo string, id int64, key *Key) (*Key, *Response, error) {
8383
u := fmt.Sprintf("repos/%v/%v/keys/%v", owner, repo, id)
8484

8585
req, err := s.client.NewRequest("PATCH", u, key)
@@ -99,7 +99,7 @@ func (s *RepositoriesService) EditKey(ctx context.Context, owner string, repo st
9999
// DeleteKey deletes a deploy key.
100100
//
101101
// GitHub API docs: https://developer.github.com/v3/repos/keys/#delete
102-
func (s *RepositoriesService) DeleteKey(ctx context.Context, owner string, repo string, id int) (*Response, error) {
102+
func (s *RepositoriesService) DeleteKey(ctx context.Context, owner string, repo string, id int64) (*Response, error) {
103103
u := fmt.Sprintf("repos/%v/%v/keys/%v", owner, repo, id)
104104

105105
req, err := s.client.NewRequest("DELETE", u, nil)

0 commit comments

Comments
 (0)