Files
gitocean/modules/setting
GustedandGusted 94845020e8 feat: add commit limit for webhook payload (#6797)
- Adds a new option `[webhook].PAYLOAD_COMMIT_LIMIT` that limits the amount of commits is sent for each webhook payload, this was previously done via `[ui].FEED_MAX_COMMIT_NUM` which feels incorrect.
- The default is 15 for this new option, purely arbitary.
- Resolves forgejo/forgejo#6780
- Added unit testing, it's quite a lot because this the notification
area is not really easy to test and rather should've been a integration test
but that ends up having more complicated than trying doing an unit test.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6797
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-02-07 19:26:50 +00:00
..
2023-12-19 09:29:05 +00:00
2023-07-04 18:36:08 +00:00
2024-08-09 07:49:13 +00:00
2023-06-18 16:10:44 +00:00
2024-11-17 00:42:31 +00:00
2023-10-10 18:47:49 +08:00
2024-08-21 16:06:17 +02:00
2024-06-07 17:12:48 +00:00
2024-08-09 07:49:13 +00:00
2024-11-11 12:44:36 +01:00
2024-06-16 13:42:58 +02:00
2023-02-20 16:18:26 -06:00