summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-25 10:34:37 +0000
committerRémy Coutable <remy@rymai.me>2017-01-25 10:34:37 +0000
commit1e64882da165bc872f5ce487775addf7347779f2 (patch)
treee3a6660c05d55f7dec91b744f6a7ddc4cae85c90
parent448321a46e163ccd2dee38109901fca9d2a65537 (diff)
parent4f17fc80873853333ca75d73f1fa249410a7135a (diff)
downloadgitlab-ce-1e64882da165bc872f5ce487775addf7347779f2.tar.gz
Merge branch 'grapify-branch-api' into 'master'
Grapify last endpoint of the branches API See merge request !8755
-rw-r--r--lib/api/branches.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/api/branches.rb b/lib/api/branches.rb
index 0950c3d2e88..be659fa4a6a 100644
--- a/lib/api/branches.rb
+++ b/lib/api/branches.rb
@@ -129,12 +129,7 @@ module API
end
end
- # Delete all merged branches
- #
- # Parameters:
- # id (required) - The ID of a project
- # Example Request:
- # DELETE /projects/:id/repository/branches/delete_merged
+ desc 'Delete all merged branches'
delete ":id/repository/merged_branches" do
DeleteMergedBranchesService.new(user_project, current_user).async_execute