debian-mirror-gitlab/app/services/milestones/close_service.rb

14 lines
288 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
module Milestones
class CloseService < Milestones::BaseService
def execute(milestone)
2018-03-17 18:26:18 +05:30
if milestone.close && milestone.project_milestone?
2014-09-02 18:07:02 +05:30
event_service.close_milestone(milestone, current_user)
end
milestone
end
end
end