1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 02:24:27 +00:00
gitea/templates/repo/issue/view_content
Jimmy Praet 78118a3b02
Add checkbox to delete pull branch after successful merge (#16049)
* Add checkbox to delete pull branch after successful merge

* Omit DeleteBranchAfterMerge field in json

* Log a warning instead of error when PR head branch deleted

* Add DefaultDeleteBranchAfterMerge to PullRequestConfig

* Add support for delete_branch_after_merge via API

* Fix for API: the branch should be deleted from the HEAD repo

If head and base repo are the same, reuse the already opened ctx.Repo.GitRepo

* Don't delegate to CleanupBranch, only reuse branch deletion code

CleanupBranch contains too much logic that has already been performed by the Merge

* Reuse gitrepo in MergePullRequest

Co-authored-by: Andrew Thornton <art27@cantab.net>
2021-07-13 01:26:25 +02:00
..
add_reaction.tmpl Align dropdown right (#14406) 2021-01-20 02:08:21 +01:00
attachments.tmpl Enforce tab indentation in templates (#15289) 2021-04-10 23:46:37 -04:00
comments_delete_time.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
comments.tmpl review comments: break-word for long file names (#16272) 2021-06-27 17:21:19 +02:00
context_menu.tmpl Use pulls url if issue is a pull request (#16230) 2021-06-22 21:13:31 +01:00
pull.tmpl Add checkbox to delete pull branch after successful merge (#16049) 2021-07-13 01:26:25 +02:00
reactions.tmpl Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00
reference_issue_dialog.tmpl Comment - Reference in new issue (#14366) 2021-01-21 14:51:17 +01:00
sidebar.tmpl Add links to toggle WIP status (#14677) 2021-05-27 22:02:04 +02:00