This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/structs
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
..
admin_user.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
attachment.go
commit_status.go
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
issue.go
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_tracked_time.go
lfs_lock.go
miscellaneous.go
notifications.go Introduce NotifySubjectType (#16320) 2021-07-01 12:51:24 +02:00
org.go Fix some API bugs (#16184) 2021-06-18 01:24:55 +02:00
org_member.go
org_team.go
org_type.go
pull.go
pull_review.go
release.go
repo.go Add checkbox to delete pull branch after successful merge (#16049) 2021-07-13 01:26:25 +02:00
repo_branch.go
repo_collaborator.go
repo_commit.go
repo_file.go
repo_key.go
repo_refs.go
repo_tag.go [API] Add repoCreateTag (#16165) 2021-06-17 18:04:10 +02:00
repo_topic.go
repo_tree.go
repo_watch.go
settings.go Add custom emoji support (#16004) 2021-06-29 16:28:38 +02:00
status.go
task.go
user.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
user_app.go
user_email.go
user_gpgkey.go
user_key.go