Files
forgejo/models/webhook/fixtures/TestListDefaultWebhooks/webhook.yml
Cyborus 54b3066e45 fix: paginate GET /api/v1/admin/hooks response (#9915)
Fixes #9911

The endpoint was documented as taking `page` and `limit` parameters but did not actually use then and just returned the full list. Now it does use them!

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9915
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Cyborus <cyborus@cyborus.xyz>
Co-committed-by: Cyborus <cyborus@cyborus.xyz>
2025-11-06 00:08:13 +01:00

67 lines
1.9 KiB
YAML

-
id: 5
repo_id: 0
owner_id: 0
url: http://www.example.com/systemhook5
http_method: POST
type: forgejo
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: true
is_system_webhook: false
-
id: 6
repo_id: 0
owner_id: 0
url: http://www.example.com/systemhook6
http_method: POST
type: forgejo
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: true
is_system_webhook: false
-
id: 7
repo_id: 0
owner_id: 0
url: http://www.example.com/systemhook7
http_method: POST
type: forgejo
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: true
is_system_webhook: false
-
id: 8
repo_id: 0
owner_id: 0
url: http://www.example.com/systemhook8
http_method: POST
type: forgejo
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: false
is_system_webhook: false
-
id: 9
repo_id: 0
owner_id: 0
url: http://www.example.com/systemhook9
http_method: POST
type: forgejo
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: false
is_system_webhook: false
-
id: 10
repo_id: 0
owner_id: 0
url: http://www.example.com/systemhook10
http_method: POST
type: forgejo
content_type: 1 # json
events: '{"push_only":true,"send_everything":false,"choose_events":false,"events":{"create":false,"push":true,"pull_request":false}}'
is_active: false
is_system_webhook: true