Files
gitocean/modules
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
..
2024-12-18 06:40:02 +01:00
2024-11-15 10:59:36 +01:00
2024-12-30 17:47:34 +01:00
2025-01-31 16:22:29 +01:00
2024-08-18 15:19:01 +02:00
2025-01-31 16:22:29 +01:00
2024-08-12 19:11:09 +02:00
2024-12-25 00:10:18 +01:00
2025-02-02 12:01:58 +01:00
2023-02-11 08:39:50 +08:00
2023-12-25 20:13:18 +08:00
2024-09-01 05:42:34 +02:00
2025-01-31 16:22:29 +01:00
2024-07-17 23:07:41 +02:00
2025-01-31 14:40:27 +01:00
2024-08-26 23:43:09 +02:00