diff options
Diffstat (limited to 'app/services/create_tag_service.rb')
-rw-r--r-- | app/services/create_tag_service.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/services/create_tag_service.rb b/app/services/create_tag_service.rb index a735d3f7f20..850077006ea 100644 --- a/app/services/create_tag_service.rb +++ b/app/services/create_tag_service.rb @@ -21,12 +21,12 @@ class CreateTagService < BaseService new_tag = repository.find_tag(tag_name) if new_tag - if project.gitlab_ci? - push_data = create_push_data(project, current_user, new_tag) - project.gitlab_ci_service.async_execute(push_data) - end - EventCreateService.new.push_ref(project, current_user, new_tag, 'add', 'refs/tags') + + push_data = create_push_data(project, current_user, new_tag) + project.execute_hooks(push_data.dup, :tag_push_hooks) + project.execute_services(push_data.dup, :tag_push_hooks) + success(new_tag) else error('Invalid reference name') |