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

after_create_service.rb « issues « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d10eca29793be79bc033dbe964e3d635c72a78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Issues
  class AfterCreateService < Issues::BaseService
    def execute(issue)
      todo_service.new_issue(issue, current_user)
      delete_milestone_total_issue_counter_cache(issue.milestone)
      track_incident_action(current_user, issue, :incident_created)
    end
  end
end

Issues::AfterCreateService.prepend_mod