@@ -79,7 +79,7 @@ type createHookRequest struct {
7979// Note that only a subset of the hook fields are used and hook must
8080// not be nil.
8181//
82- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#create-a-repository-webhook
82+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #create-a-repository-webhook
8383//
8484//meta:operation POST /repos/{owner}/{repo}/hooks
8585func (s * RepositoriesService ) CreateHook (ctx context.Context , owner , repo string , hook * Hook ) (* Hook , * Response , error ) {
@@ -108,7 +108,7 @@ func (s *RepositoriesService) CreateHook(ctx context.Context, owner, repo string
108108
109109// ListHooks lists all Hooks for the specified repository.
110110//
111- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#list-repository-webhooks
111+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #list-repository-webhooks
112112//
113113//meta:operation GET /repos/{owner}/{repo}/hooks
114114func (s * RepositoriesService ) ListHooks (ctx context.Context , owner , repo string , opts * ListOptions ) ([]* Hook , * Response , error ) {
@@ -134,7 +134,7 @@ func (s *RepositoriesService) ListHooks(ctx context.Context, owner, repo string,
134134
135135// GetHook returns a single specified Hook.
136136//
137- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#get-a-repository-webhook
137+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #get-a-repository-webhook
138138//
139139//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}
140140func (s * RepositoriesService ) GetHook (ctx context.Context , owner , repo string , id int64 ) (* Hook , * Response , error ) {
@@ -154,7 +154,7 @@ func (s *RepositoriesService) GetHook(ctx context.Context, owner, repo string, i
154154
155155// EditHook updates a specified Hook.
156156//
157- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#update-a-repository-webhook
157+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #update-a-repository-webhook
158158//
159159//meta:operation PATCH /repos/{owner}/{repo}/hooks/{hook_id}
160160func (s * RepositoriesService ) EditHook (ctx context.Context , owner , repo string , id int64 , hook * Hook ) (* Hook , * Response , error ) {
@@ -174,7 +174,7 @@ func (s *RepositoriesService) EditHook(ctx context.Context, owner, repo string,
174174
175175// DeleteHook deletes a specified Hook.
176176//
177- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#delete-a-repository-webhook
177+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #delete-a-repository-webhook
178178//
179179//meta:operation DELETE /repos/{owner}/{repo}/hooks/{hook_id}
180180func (s * RepositoriesService ) DeleteHook (ctx context.Context , owner , repo string , id int64 ) (* Response , error ) {
@@ -188,7 +188,7 @@ func (s *RepositoriesService) DeleteHook(ctx context.Context, owner, repo string
188188
189189// PingHook triggers a 'ping' event to be sent to the Hook.
190190//
191- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#ping-a-repository-webhook
191+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #ping-a-repository-webhook
192192//
193193//meta:operation POST /repos/{owner}/{repo}/hooks/{hook_id}/pings
194194func (s * RepositoriesService ) PingHook (ctx context.Context , owner , repo string , id int64 ) (* Response , error ) {
@@ -202,7 +202,7 @@ func (s *RepositoriesService) PingHook(ctx context.Context, owner, repo string,
202202
203203// TestHook triggers a test Hook by github.
204204//
205- // GitHub API docs: https://docs.github.com/rest/webhooks/ repos#test-the-push-repository-webhook
205+ // GitHub API docs: https://docs.github.com/rest/repos/webhooks #test-the-push-repository-webhook
206206//
207207//meta:operation POST /repos/{owner}/{repo}/hooks/{hook_id}/tests
208208func (s * RepositoriesService ) TestHook (ctx context.Context , owner , repo string , id int64 ) (* Response , error ) {
0 commit comments