gitea/routers/private
Brecht Van Lommel a9343896f4
Option to delay conflict checking of old pull requests until page view (#27779)
`[repository.pull-request] DELAY_CHECK_FOR_INACTIVE_DAYS` is a new
setting to delay the mergeable check for pull requests that have been
inactive for the specified number of days.

This avoids potentially long delays for big repositories with many pull
requests. and reduces system load overall when there are many
repositories or pull requests.

When viewing the PR, checking will start immediately and the PR merge
box will automatically reload when complete. Accessing the PR through
the API will also start checking immediately.

The default value of `7` provides a balance between system load, and
keeping behavior similar to what it was before both for users and API
access. With `0` all conflict checking will be delayed, while `-1`
always checks immediately to restore the previous behavior.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-24 19:26:57 +00:00
..
tests/repos Fix verifyCommits error when push a new branch (#26664) 2023-08-30 02:27:53 +00:00
actions.go Clean up log messages (#30313) 2024-04-07 19:17:06 +08:00
default_branch.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
hook_post_receive_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
hook_post_receive.go Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
hook_pre_receive.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +00:00
hook_proc_receive.go User facing messages for AGit errors (#33012) 2025-01-27 02:33:39 +00:00
hook_verification_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
hook_verification.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
internal_repo.go [Feature] Private README.md for organization (#32872) 2024-12-31 04:22:09 +00:00
internal.go Avoid duplicate SetContextValue call (#33564) 2025-02-12 14:25:46 +08:00
key.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
mail.go Split mail sender sub package from mailer service package (#32618) 2024-11-30 01:15:41 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
manager_process.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
manager_unix.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
manager_windows.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
manager.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
restore_repo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
serv.go Add a config option to block "expensive" pages for anonymous users (#34024) 2025-03-30 05:26:19 +00:00
ssh_log.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00