2019-02-21 08:34:40 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Helpers
|
|
|
|
module DiscussionsHelpers
|
2020-10-29 14:09:11 -04:00
|
|
|
def self.feature_category_per_noteable_type
|
2019-02-21 08:34:40 -05:00
|
|
|
# This is a method instead of a constant, allowing EE to more easily
|
|
|
|
# extend it.
|
2020-10-29 14:09:11 -04:00
|
|
|
{
|
|
|
|
Issue => :issue_tracking,
|
|
|
|
Snippet => :snippets,
|
|
|
|
MergeRequest => :code_review,
|
|
|
|
Commit => :code_review
|
|
|
|
}
|
2019-02-21 08:34:40 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
API::Helpers::DiscussionsHelpers.prepend_mod_with('API::Helpers::DiscussionsHelpers')
|