fix typo according to docs and tests
This commit is contained in:
parent
00b280c3f9
commit
853ca74620
1 changed files with 7 additions and 7 deletions
|
@ -37,11 +37,11 @@ module Gitlab
|
|||
#
|
||||
# Parameters:
|
||||
# id (required) - The ID or code name of a project
|
||||
# branch_id (required) - The name of the branch
|
||||
# branch (required) - The name of the branch
|
||||
# Example Request:
|
||||
# GET /projects/:id/repository/branches/:branch_id
|
||||
get ":id/repository/branches/:branch_id" do
|
||||
@branch = user_project.repo.heads.find { |item| item.name == params[:branch_id] }
|
||||
# GET /projects/:id/repository/branches/:branch
|
||||
get ":id/repository/branches/:branch" do
|
||||
@branch = user_project.repo.heads.find { |item| item.name == params[:branch] }
|
||||
present @branch, :with => Entities::RepoObject
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue