gitea/models
Louis e2104a1dd5
Allow configuring default PR base branch (fixes #36412) (#36425)
This adds a per-repository default PR base branch and wires it through
PR entry points. It updates compare links and recently pushed branch
prompts to respect the configured base branch, and prevents auto-merge
cleanup from deleting the configured base branch on same-repo PRs.

## Behavior changes
- New PR compare links on repo home/issue list and branch list honor the
configured default PR base branch.
- The "recently pushed new branches" prompt now compares against the
configured base branch.
- Auto-merge branch cleanup skips deleting the configured base branch
(same-repo PRs only).

---------

Signed-off-by: Louis <116039387+tototomate123@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2026-02-07 01:34:29 +00:00
..
actions Add a doctor command to fix inconsistent run status (#35840) 2025-11-04 03:32:26 +01:00
activities Fix incorrect pull request counter (#35819) 2025-11-03 20:52:13 +00:00
admin Don't block site admin's operation if SECRET_KEY is lost (#35721) 2025-10-22 12:35:56 +08:00
asymkey Add an option to automatically verify SSH keys from LDAP (#35927) 2025-12-27 12:33:08 +00:00
auth Don't block site admin's operation if SECRET_KEY is lost (#35721) 2025-10-22 12:35:56 +08:00
avatars Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
db chore: add comments for "api/healthz", clean up test env (#36481) 2026-01-30 10:23:38 +08:00
dbfs Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
fixtures Add a doctor command to fix inconsistent run status (#35840) 2025-11-04 03:32:26 +01:00
git Allow configuring default PR base branch (fixes #36412) (#36425) 2026-02-07 01:34:29 +00:00
issues Add paging headers (#36521) 2026-02-06 13:12:05 +00:00
migrations chore: add comments for "api/healthz", clean up test env (#36481) 2026-01-30 10:23:38 +08:00
organization Fix team member access check (#35899) 2025-11-09 03:13:31 +00:00
packages fix(packages/container): data race when uploading container blobs concurrently (#36524) 2026-02-04 00:08:20 +08:00
perm Bump golangci-lint to 2.7.2, enable modernize stringsbuilder (#36180) 2025-12-17 20:50:53 +00:00
project Fix permission check on org project operations (#36318) 2026-01-14 17:29:33 +00:00
pull Fix incorrect viewed files counter if file has changed (#36009) 2025-11-27 14:02:03 +00:00
renderhelper fix: generate IDs for HTML headings without id attribute (#36233) 2026-01-06 05:09:44 +00:00
repo Allow configuring default PR base branch (fixes #36412) (#36425) 2026-02-07 01:34:29 +00:00
secret Don't block site admin's operation if SECRET_KEY is lost (#35721) 2025-10-22 12:35:56 +08:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
unit Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
unittest chore: add comments for "api/healthz", clean up test env (#36481) 2026-01-30 10:23:38 +08:00
user Refactor ActionsTaskID (#36503) 2026-01-31 22:01:08 -08:00
webhook Add paging headers (#36521) 2026-02-06 13:12:05 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
repo_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00