diff options
author | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2018-12-31 06:31:35 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2019-04-25 14:54:26 +0300 |
commit | f48605c796bf9098370a258e00fce41f1770ff74 (patch) | |
tree | 8ecd4ec10090264fa9bb9aacb29dab2b21a51839 /app/services/tags | |
parent | 8a07d5e60faffcdf090376a1957be8703253e7ce (diff) |
Use all keyword args for DataBuilder::Push.build()
Diffstat (limited to 'app/services/tags')
-rw-r--r-- | app/services/tags/destroy_service.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/services/tags/destroy_service.rb b/app/services/tags/destroy_service.rb index cab507946b4..4f6ae07be7d 100644 --- a/app/services/tags/destroy_service.rb +++ b/app/services/tags/destroy_service.rb @@ -41,12 +41,11 @@ module Tags def build_push_data(tag) Gitlab::DataBuilder::Push.build( - project, - current_user, - tag.dereferenced_target.sha, - Gitlab::Git::BLANK_SHA, - "#{Gitlab::Git::TAG_REF_PREFIX}#{tag.name}", - []) + project: project, + user: current_user, + oldrev: tag.dereferenced_target.sha, + newrev: Gitlab::Git::BLANK_SHA, + ref: "#{Gitlab::Git::TAG_REF_PREFIX}#{tag.name}") end end end |