update config: DEFAULT_TITLE_SOURCE=branch-name (#457)

https://github.com/go-gitea/gitea/pull/38356Reviewed-on: https://gitea.com/gitea/docs/pulls/457
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <29147+wxiaoguang@noreply.gitea.com>
This commit is contained in:
wxiaoguang
2026-07-07 18:40:24 +00:00
committed by Lunny Xiao
parent 9558006c39
commit 7fa4bc6bd4

View File

@@ -177,6 +177,7 @@ In addition, there is _`StaticRootPath`_ which can be set as a built-in at build
- `DEFAULT_TITLE_SOURCE`: **auto**: Default source for the pull request title when opening a new PR. Valid options:
- `first-commit`: Uses the oldest commit's summary as the title. If there are multiple commits, still uses the first commit's message.
- `auto`: Uses the commit's summary when the PR contains a single commit; when there are multiple commits, converts the branch name into a human-readable title by normalizing separators and casing.
- `branch-name`: Always uses the PR's branch name.
### Repository - Issue (`repository.issue`)