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

resource_label_events_helpers.rb « helpers « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eeb68362c1da25098cfd97b9d41b866834b4fbc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module API
  module Helpers
    module ResourceLabelEventsHelpers
      def self.feature_category_per_eventable_type
        # This is a method instead of a constant, allowing EE to more easily
        # extend it.
        {
          Issue => :team_planning,
          MergeRequest => :code_review
        }
      end
    end
  end
end

API::Helpers::ResourceLabelEventsHelpers.prepend_mod_with('API::Helpers::ResourceLabelEventsHelpers')