gitlab-org--gitlab-foss/app/services/milestones/reopen_service.rb

12 lines
262 B
Ruby
Raw Normal View History

module Milestones
class ReopenService < Milestones::BaseService
def execute(milestone)
if milestone.activate && milestone.project_milestone?
event_service.reopen_milestone(milestone, current_user)
end
milestone
end
end
end