gitea/models/issues
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
..
assignees_test.go
assignees.go
comment_code.go Performance optimization for pull request files loading comments attachments (#33585) 2025-02-14 06:49:58 +00:00
comment_list.go Some small refactors (#33144) 2025-01-10 06:00:06 +00:00
comment_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
comment.go Move commits signature and verify functions to service layers (#33605) 2025-02-16 12:24:07 +00:00
content_history_test.go
content_history.go
dependency_test.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
dependency.go
issue_index.go Update golangci-lint to v1.62.2, fix issues (#32845) 2024-12-15 02:31:07 +00:00
issue_label_test.go
issue_label.go
issue_list_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
issue_list.go Move issue pin to an standalone table for querying performance (#33452) 2025-02-17 11:28:37 -08:00
issue_lock.go Add API routes to lock and unlock issues (#34165) 2025-04-21 00:43:43 +00:00
issue_pin.go Move issue pin to an standalone table for querying performance (#33452) 2025-02-17 11:28:37 -08:00
issue_project.go Fix project issues list and counting (#33594) 2025-02-17 05:14:56 +00:00
issue_search.go feat: Add sorting by exclusive labels (issue priority) (#33206) 2025-04-10 17:18:07 +00:00
issue_stats.go chore: fix some trivial problems and TODOs (#33473) 2025-02-02 18:16:56 +00:00
issue_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
issue_update.go Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
issue_user_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
issue_user.go
issue_watch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issue_watch.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00
issue_xref_test.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_xref.go
issue.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
label_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
label.go feat: Add sorting by exclusive labels (issue priority) (#33206) 2025-04-10 17:18:07 +00:00
main_test.go
milestone_list.go
milestone_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
milestone.go
pull_list_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
pull_list.go Use pullrequestlist instead of []*pullrequest (#33765) 2025-03-02 10:14:49 -08:00
pull_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
pull.go Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +00:00
reaction.go Refactor user package (#33423) 2025-01-29 01:14:35 +02:00
review_list.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) 2025-01-07 10:50:09 +08:00
review_test.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) 2025-01-07 10:50:09 +08:00
review.go Fix panic when comment is nil (#34257) 2025-04-24 01:58:00 +00:00
stopwatch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
stopwatch.go Make tracked time representation display as hours (#33315) 2025-01-19 09:30:44 +08:00
tracked_time_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
tracked_time.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00