gitea/routers/api/v1
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
..
activitypub Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
admin Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
misc Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
notify Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
org Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
packages Add package version api endpoints (#34173) 2025-04-13 20:00:44 +00:00
repo Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +00:00
settings Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +08:00
shared Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
swagger Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +08:00
user Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
utils Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +08:00
api.go Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +08:00