diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-12-14 09:37:37 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-12-14 09:37:37 +0000 |
commit | 4581f9d89be721bf853ceac433c2492dd9438c5a (patch) | |
tree | 69198bb4580416a9aa2af1473d80e108a997ce5d /lib/gitlab_net.rb | |
parent | cdd9e12beb06354ff0babfb18907d3f184bac547 (diff) | |
parent | e4d62acc8d0c1325e6451ce222e7f4d5bdd55fc7 (diff) | |
download | gitlab-shell-4581f9d89be721bf853ceac433c2492dd9438c5a.tar.gz |
Merge branch 'handle-push-options' into 'master'
Handle push options
See merge request gitlab-org/gitlab-shell!166
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index cae3bdb..a84ba84 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -119,11 +119,12 @@ class GitlabNet # rubocop:disable Metrics/ClassLength false end - def post_receive(gl_repository, identifier, changes) + def post_receive(gl_repository, identifier, changes, push_options) params = { gl_repository: gl_repository, identifier: identifier, - changes: changes + changes: changes, + :"push_options[]" => push_options, # rubocop:disable Style/HashSyntax } resp = post("#{internal_api_endpoint}/post_receive", params) |