2019-02-26 16:07:32 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Helpers
|
|
|
|
module ResourceLabelEventsHelpers
|
2020-10-30 15:08:59 +00:00
|
|
|
def self.feature_category_per_eventable_type
|
2019-02-26 16:07:32 +00:00
|
|
|
# This is a method instead of a constant, allowing EE to more easily
|
|
|
|
# extend it.
|
2020-10-30 15:08:59 +00:00
|
|
|
{
|
|
|
|
Issue => :issue_tracking,
|
|
|
|
MergeRequest => :code_review
|
|
|
|
}
|
2019-02-26 16:07:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 13:26:31 +00:00
|
|
|
|
2021-05-11 21:10:21 +00:00
|
|
|
API::Helpers::ResourceLabelEventsHelpers.prepend_mod_with('API::Helpers::ResourceLabelEventsHelpers')
|