Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
40d3d57413
commit
188a57f93b
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
resources :projects, only: [:index, :new, :create]
|
||||
|
||||
Gitlab.ee do
|
||||
scope "/-/push_from_secondary/:geo_node_id" do
|
||||
draw :git_http
|
||||
end
|
||||
end
|
||||
|
||||
draw :git_http
|
||||
|
||||
get '/projects/:id' => 'projects#resolve'
|
||||
|
|
|
@ -22,6 +22,10 @@ module API
|
|||
# easily.
|
||||
project.http_url_to_repo
|
||||
end
|
||||
|
||||
def ee_post_receive_response_hook(response)
|
||||
# Hook for EE to add messages
|
||||
end
|
||||
end
|
||||
|
||||
namespace 'internal' do
|
||||
|
@ -265,6 +269,8 @@ module API
|
|||
response.add_basic_message(project_created_message)
|
||||
end
|
||||
|
||||
ee_post_receive_response_hook(response)
|
||||
|
||||
present response, with: Entities::InternalPostReceive::Response
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue