diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-20 00:08:34 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-20 00:08:34 +0800 |
commit | a05bc477b99500fa919295e1086f7a8de903e3c4 (patch) | |
tree | 12a04ccc7551ff3eaae9ce7ae2d07c6e11886f93 /lib/api/triggers.rb | |
parent | d035d735242a47bee7cd5973c9daa7d984800700 (diff) | |
download | gitlab-ce-a05bc477b99500fa919295e1086f7a8de903e3c4.tar.gz |
Use hash to return multiple objects
Diffstat (limited to 'lib/api/triggers.rb')
-rw-r--r-- | lib/api/triggers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/triggers.rb b/lib/api/triggers.rb index 9e444563fdf..55528101f15 100644 --- a/lib/api/triggers.rb +++ b/lib/api/triggers.rb @@ -27,8 +27,8 @@ module API end # create request and trigger builds - trigger_request = Ci::CreateTriggerRequestService.new.execute(project, trigger, params[:ref].to_s, variables) - pipeline = trigger_request.pipeline + result = Ci::CreateTriggerRequestService.execute(project, trigger, params[:ref].to_s, variables) + pipeline = result[:pipeline] if pipeline.persisted? present pipeline, with: Entities::Pipeline |