Module: API::Helpers::DiscussionsHelpers

Defined in:
lib/api/helpers/discussions_helpers.rb

Class Method Summary collapse

Class Method Details

.feature_category_per_noteable_typeObject


6
7
8
9
10
11
12
13
14
15
# File 'lib/api/helpers/discussions_helpers.rb', line 6

def self.feature_category_per_noteable_type
  # This is a method instead of a constant, allowing EE to more easily
  # extend it.
  {
    Issue => :team_planning,
    Snippet => :snippets,
    MergeRequest => :code_review,
    Commit => :code_review
  }
end