2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Git
|
2019-07-31 22:56:46 +05:30
|
|
|
class TagPushService < ::BaseService
|
2019-07-07 11:18:12 +05:30
|
|
|
def execute
|
2019-07-31 22:56:46 +05:30
|
|
|
return unless Gitlab::Git.tag_ref?(params[:ref])
|
2019-07-07 11:18:12 +05:30
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
project.repository.before_push_tag
|
|
|
|
TagHooksService.new(project, current_user, params).execute
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|