Commit 84c5f49d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
parent b29a61eb
...@@ -15,10 +15,11 @@ class GitlabNet ...@@ -15,10 +15,11 @@ class GitlabNet
action: cmd, action: cmd,
ref: ref, ref: ref,
project: project_name, project: project_name,
oldrev: oldrev,
newrev: newrev
} }
params.merge!(oldrev: oldrev) if oldrev
params.merge!(newrev: newrev) if newrev
if actor =~ /\Akey\-\d+\Z/ if actor =~ /\Akey\-\d+\Z/
params.merge!(key_id: actor.gsub("key-", "")) params.merge!(key_id: actor.gsub("key-", ""))
elsif actor =~ /\Auser\-\d+\Z/ elsif actor =~ /\Auser\-\d+\Z/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment