fbde835404
Partially addresses #47424.
15 lines
325 B
Ruby
15 lines
325 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Milestones
|
|
class CreateService < Milestones::BaseService
|
|
def execute
|
|
milestone = parent.milestones.new(params)
|
|
|
|
if milestone.save && milestone.project_milestone?
|
|
event_service.open_milestone(milestone, current_user)
|
|
end
|
|
|
|
milestone
|
|
end
|
|
end
|
|
end
|