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

create_service.rb « milestones « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aef3124c7e3f28e41c707edbd7a7cc620048b7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Milestones
  class CreateService < Milestones::BaseService
    def execute
      milestone = parent.milestones.new(params)

      if milestone.save && milestone.is_project_milestone?
        event_service.open_milestone(milestone, current_user)
      end

      milestone
    end
  end
end