You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add DEFAULT_TITLE_SOURCE setting for pull request title default behavior (go-gitea#37465)
Adds a new `DEFAULT_TITLE_SOURCE` option under
`[repository.pull-request]` with three values:
- `first-commit` (default): uses the oldest commit summary, current
behavior since v1.26
- `auto`: normalizes branch name as title for multi-commit PRs (just
like GitHub), use commit summary for single-commit PRs
Closes: go-gitea#37463
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Nicolas <bircni@icloud.com>
Copy file name to clipboardExpand all lines: custom/conf/app.example.ini
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1169,6 +1169,11 @@ LEVEL = Info
1169
1169
;; Retarget child pull requests to the parent pull request branch target on merge of parent pull request. It only works on merged PRs where the head and base branch target the same repo.
1170
1170
;RETARGET_CHILDREN_ON_MERGE = true
1171
1171
;;
1172
+
;; Default source for the pull request title when opening a new PR.
1173
+
;; "first-commit" uses the oldest commit's summary.
1174
+
;; "auto" uses commit's summary if the PR only has one commit, normalizes the branch name if multiple commits.
1175
+
;DEFAULT_TITLE_SOURCE = first-commit
1176
+
;;
1172
1177
;; Delay mergeable check until page view or API access, for pull requests that have not been updated in the specified days when their base branches get updated.
1173
1178
;; Use "-1" to always check all pull requests (old behavior). Use "0" to always delay the checks.
0 commit comments