summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index cae3bdb..a0e1f12 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_opts)
params = {
gl_repository: gl_repository,
identifier: identifier,
- changes: changes
+ changes: changes,
+ :"push_opts[]" => push_opts, # ruby <2.2 syntax
}
resp = post("#{internal_api_endpoint}/post_receive", params)