gitea/routers/web
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
..
admin Make public URL generation configurable (#34250) 2025-04-22 06:49:37 +08:00
auth Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
devtest Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Improve issue & code search (#33860) 2025-03-13 11:07:48 +08:00
feed Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor cache-control (#33861) 2025-03-13 07:04:50 +08:00
org Restore form inputs on organization create error (#34201) 2025-04-15 08:21:51 +00:00
repo Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +00:00
shared Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
user refactor organization menu (#33928) 2025-04-10 12:12:55 -07:00
base.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
githttp.go Fix git client accessing renamed repo (#34034) 2025-03-28 07:28:58 +08:00
goget.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
home.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +00:00
webfinger.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00