![]() - 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> |
||
---|---|---|
.. | ||
TestPushCommits | ||
shared | ||
sourcehut | ||
default.go | ||
default_test.go | ||
deliver.go | ||
deliver_test.go | ||
dingtalk.go | ||
dingtalk_test.go | ||
discord.go | ||
discord_test.go | ||
feishu.go | ||
feishu_test.go | ||
general.go | ||
general_test.go | ||
gogs.go | ||
main_test.go | ||
matrix.go | ||
matrix_test.go | ||
msteams.go | ||
msteams_test.go | ||
notifier.go | ||
notifier_test.go | ||
packagist.go | ||
packagist_test.go | ||
slack.go | ||
slack_test.go | ||
telegram.go | ||
telegram_test.go | ||
webhook.go | ||
webhook_test.go | ||
wechatwork.go |