0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-15 18:48:24 -05:00
forgejo/services/repository
Gusted 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
..
archiver Add github compatible tarball download API endpoints (#32572) 2024-12-03 10:19:22 +01:00
commitstatus create "shared" package to workaround import loop issues 2024-10-31 03:49:14 +01:00
files chore: Remove GetFileResponseFromCommit 2025-01-31 16:22:29 +01:00
adopt.go Fix incorrect default branch when adopt a repository (#30912) 2024-05-12 20:03:10 +02:00
adopt_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
avatar.go fix: repo avatar generating (#6338) 2024-12-22 18:18:37 +01:00
avatar_test.go fix: repo avatar generating (#6338) 2024-12-22 18:18:37 +01:00
branch.go Detect whether action view branch was deleted (#32764) 2024-12-15 09:45:10 +01:00
cache.go
check.go
collaboration.go
collaboration_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
commit.go
contributors_graph.go [CHORE] Move cache library 2024-08-27 21:28:56 +02:00
contributors_graph_test.go disable gravatar in test (#32529) 2024-11-24 15:42:36 +00:00
create.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
create_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
delete.go mysql: use inner join for hook_task deletion 2024-05-24 10:31:41 +02:00
fork.go chore(refactor): split repo_service.ForkRepository in two 2024-08-11 12:40:34 +02:00
fork_test.go chore(refactor): split repo_service.ForkRepository in two 2024-08-11 12:40:34 +02:00
generate.go fix: template config path (#2836) 2024-12-22 11:05:24 +01:00
generate_test.go
hooks.go
init.go
lfs.go log concise repo names in lfs doctor 2024-10-03 16:15:08 +02:00
lfs_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
main_test.go
migrate.go fix: use correct default branch for migrated wiki (#6754) 2025-02-02 12:06:02 +00:00
push.go feat: add commit limit for webhook payload (#6797) 2025-02-07 19:26:50 +00:00
repository.go Merge branch 'forgejo' into forgejo-federated-pr5 2024-05-29 18:26:16 +02:00
repository_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
review.go
review_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
setting.go fix: don't cancel schedule workflows on push to main branch 2024-10-05 12:14:44 +02:00
star.go feat(federated-star) star repositories via ActivityPub (#1680) 2024-06-06 08:58:11 +02:00
template.go
transfer.go Add lint-go-gopls (#30729) 2024-06-09 11:13:39 +02:00
transfer_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00