Skip to content

Add DEFAULT_DELETE_BRANCH_AFTER_MERGE setting#36917

Merged
silverwind merged 3 commits intogo-gitea:mainfrom
silverwind:defdel
Mar 23, 2026
Merged

Add DEFAULT_DELETE_BRANCH_AFTER_MERGE setting#36917
silverwind merged 3 commits intogo-gitea:mainfrom
silverwind:defdel

Conversation

@silverwind
Copy link
Copy Markdown
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
Copy Markdown
Contributor

example ini isn't updated

Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
@silverwind
Copy link
Copy Markdown
Member Author

Added to app.example.ini and opened docs pr https://gitea.com/gitea/docs/pulls/367. Also tested locally with a new repo.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 23, 2026
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 23, 2026
@silverwind silverwind enabled auto-merge (squash) March 23, 2026 17:04
@silverwind silverwind merged commit ef88cdb into go-gitea:main Mar 23, 2026
26 checks passed
@GiteaBot GiteaBot added this to the 1.26.0 milestone Mar 23, 2026
@silverwind silverwind deleted the defdel branch March 23, 2026 17:34
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 23, 2026
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 24, 2026
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Make PUBLIC_URL_DETECTION default to "auto" (go-gitea#36955)
  Fix user settings sidebar showing disabled features on some pages (go-gitea#36958)
  Update GitHub Actions to latest major versions (go-gitea#36964)
  Fix various trivial problems (go-gitea#36953)
  Rework checkbox styling, remove `input` border hover effect (go-gitea#36870)
  Add `DEFAULT_DELETE_BRANCH_AFTER_MERGE` setting (go-gitea#36917)
  Update Nix flake (go-gitea#36943)
  Update to eslint 10 (go-gitea#36925)
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/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants