gitea/services/migrations
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
..
codebase_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
codebase.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
codecommit.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
common.go
dump.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
error.go Bump github.com/google/go-github to v61 (#30738) 2024-04-28 01:20:23 -04:00
git.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
gitbucket.go
gitea_downloader_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
gitea_downloader.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gitea_uploader_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gitea_uploader.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +00:00
github_test.go fix github migration error when using multiple tokens (#34144) 2025-04-13 23:20:14 +00:00
github.go fix github migration error when using multiple tokens (#34144) 2025-04-13 23:20:14 +00:00
gitlab_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
gitlab.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gogs_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
gogs.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
http_client.go Support allowed hosts for migrations to work with proxy (#32025) 2024-09-11 05:47:00 +00:00
main_test.go
migrate_test.go
migrate.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
onedev_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
onedev.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
restore.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
update.go