@@ -14,7 +14,7 @@ import (
14
14
//
15
15
// GitHub API docs: https://docs.github.com/en/rest/webhooks/repo-config?apiVersion=2022-11-28#get-a-webhook-configuration-for-a-repository
16
16
func (s * RepositoriesService ) GetHookConfiguration (ctx context.Context , owner , repo string , id int64 ) (* HookConfig , * Response , error ) {
17
- u := fmt .Sprintf ("repos/%v/%v/hooks/%d /config" , owner , repo , id )
17
+ u := fmt .Sprintf ("repos/%v/%v/hooks/%v /config" , owner , repo , id )
18
18
req , err := s .client .NewRequest ("GET" , u , nil )
19
19
if err != nil {
20
20
return nil , nil , err
@@ -33,7 +33,7 @@ func (s *RepositoriesService) GetHookConfiguration(ctx context.Context, owner, r
33
33
//
34
34
// GitHub API docs: https://docs.github.com/en/rest/webhooks/repo-config?apiVersion=2022-11-28#update-a-webhook-configuration-for-a-repository
35
35
func (s * RepositoriesService ) EditHookConfiguration (ctx context.Context , owner , repo string , id int64 , config * HookConfig ) (* HookConfig , * Response , error ) {
36
- u := fmt .Sprintf ("repos/%v/%v/hooks/%d /config" , owner , repo , id )
36
+ u := fmt .Sprintf ("repos/%v/%v/hooks/%v /config" , owner , repo , id )
37
37
req , err := s .client .NewRequest ("PATCH" , u , config )
38
38
if err != nil {
39
39
return nil , nil , err
0 commit comments