diff options
author | Scott Le <scott.lee318@gmail.com> | 2016-07-28 11:04:57 +0700 |
---|---|---|
committer | Scott Le <scott.lee318@gmail.com> | 2016-08-11 23:37:00 +0700 |
commit | 6109daf480327581b6e2dcdfffe90464be6c7796 (patch) | |
tree | 813f1d607d89c94873ae31633acb9091c8a0e287 /lib/api/internal.rb | |
parent | 5a33bc984abfb4ee6243c00bbcc71ccd086d2266 (diff) | |
download | gitlab-ce-6109daf480327581b6e2dcdfffe90464be6c7796.tar.gz |
api for generating new merge request
DRY code + fix rubocop
Add more test cases
Append to changelog
DRY changes list
find_url service for merge_requests
use GET for getting merge request links
remove files
rename to get_url_service
reduce loop
add test case for cross project
refactor tiny thing
update changelog
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 959b700de78..d8e9ac406c4 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -74,6 +74,10 @@ module API response end + get "/merge_request_urls" do + ::MergeRequests::GetUrlsService.new(project).execute(params[:changes]) + end + # # Discover user by ssh key # |