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