@@ -37,7 +37,7 @@ func (s *OrganizationsService) ListHooks(ctx context.Context, org string, opt *L
37
37
// GetHook returns a single specified Hook.
38
38
//
39
39
// 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 ) {
41
41
u := fmt .Sprintf ("orgs/%v/hooks/%d" , org , id )
42
42
req , err := s .client .NewRequest ("GET" , u , nil )
43
43
if err != nil {
@@ -71,7 +71,7 @@ func (s *OrganizationsService) CreateHook(ctx context.Context, org string, hook
71
71
// EditHook updates a specified Hook.
72
72
//
73
73
// 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 ) {
75
75
u := fmt .Sprintf ("orgs/%v/hooks/%d" , org , id )
76
76
req , err := s .client .NewRequest ("PATCH" , u , hook )
77
77
if err != nil {
@@ -85,7 +85,7 @@ func (s *OrganizationsService) EditHook(ctx context.Context, org string, id int,
85
85
// PingHook triggers a 'ping' event to be sent to the Hook.
86
86
//
87
87
// 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 ) {
89
89
u := fmt .Sprintf ("orgs/%v/hooks/%d/pings" , org , id )
90
90
req , err := s .client .NewRequest ("POST" , u , nil )
91
91
if err != nil {
@@ -97,7 +97,7 @@ func (s *OrganizationsService) PingHook(ctx context.Context, org string, id int)
97
97
// DeleteHook deletes a specified Hook.
98
98
//
99
99
// 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 ) {
101
101
u := fmt .Sprintf ("orgs/%v/hooks/%d" , org , id )
102
102
req , err := s .client .NewRequest ("DELETE" , u , nil )
103
103
if err != nil {
0 commit comments