Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reopen_service.rb « milestones « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b8b682caafd7a3f085c85f170e897b26d7be12a (plain)
1
2
3
4
5
6
7
8
9
10
11
module Milestones
  class ReopenService < Milestones::BaseService
    def execute(milestone)
      if milestone.activate && milestone.is_project_milestone?
        event_service.reopen_milestone(milestone, current_user)
      end

      milestone
    end
  end
end