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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
288 B
Ruby
Raw Normal View History

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