gitlab-org--gitlab-foss/app/services/milestones/close_service.rb
2017-07-07 15:08:49 +00:00

11 lines
260 B
Ruby

module Milestones
class CloseService < Milestones::BaseService
def execute(milestone)
if milestone.close && milestone.is_project_milestone?
event_service.close_milestone(milestone, current_user)
end
milestone
end
end
end