diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-30 05:10:41 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-31 17:31:45 +0300 |
commit | eaf60bb5441190e2ffcf219b3169bda2237d57cd (patch) | |
tree | 3139e8056df242472c91d9d2ac6d48c82cf4b36c /lib/api/helpers | |
parent | cbaa015cc9f55a387cdab85a6ba4b8c9c6ab447e (diff) |
Implement /internal/post_receive unified endpoint for PostReceive tasks
Diffstat (limited to 'lib/api/helpers')
-rw-r--r-- | lib/api/helpers/internal_helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers/internal_helpers.rb b/lib/api/helpers/internal_helpers.rb index ecb79317093..f57ff0f2632 100644 --- a/lib/api/helpers/internal_helpers.rb +++ b/lib/api/helpers/internal_helpers.rb @@ -42,6 +42,10 @@ module API ::Users::ActivityService.new(actor, 'Git SSH').execute if commands.include?(params[:action]) end + def merge_request_urls + ::MergeRequests::GetUrlsService.new(project).execute(params[:changes]) + end + private def set_project |