Skip to content

Add DEFAULT_DELETE_BRANCH_AFTER_MERGE setting#36917

Open
silverwind wants to merge 1 commit intogo-gitea:mainfrom
silverwind:defdel
Open

Add DEFAULT_DELETE_BRANCH_AFTER_MERGE setting#36917
silverwind wants to merge 1 commit intogo-gitea:mainfrom
silverwind:defdel

Conversation

@silverwind
Copy link
Member

@silverwind silverwind commented Mar 17, 2026

Add this config option, applying to new repos:

[repository.pull-request]
DEFAULT_DELETE_BRANCH_AFTER_MERGE = true

Defaults to false, preserving current behavior.

Add `[repository.pull-request]` `DEFAULT_DELETE_BRANCH_AFTER_MERGE`
config option to control the default value for new repositories.

Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 17, 2026
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Mar 17, 2026
@silverwind silverwind added the docs-update-needed The document needs to be updated synchronously label Mar 17, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 18, 2026
@TheFox0x7
Copy link
Contributor

example ini isn't updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-update-needed The document needs to be updated synchronously lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants