Method: Gitlab::Client::Branches#delete_merged_branches

Defined in:
lib/gitlab/client/branches.rb

#delete_merged_branches(project) ⇒ nil Also known as: repo_delete_merged_branches

Delete all branches that are merged into the project default branch. Protected branches will not be deleted as part of this operation.

Examples:

Gitlab.delete_merged_branches(3)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

Returns:

  • (nil)

    This API call returns an empty response body.

[View source]

105
106
107
# File 'lib/gitlab/client/branches.rb', line 105

def delete_merged_branches(project)
  delete("/projects/#{url_encode project}/repository/merged_branches")
end