gitlab-org--gitlab-foss/app/services/git/tag_push_service.rb

15 lines
289 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Git
class TagPushService < ::BaseService
def execute
return unless Gitlab::Git.tag_ref?(params[:ref])
project.repository.before_push_tag
TagHooksService.new(project, current_user, params).execute
true
end
end
end