2015-11-17 05:03:18 -05:00
|
|
|
module MergeRequestsAction
|
|
|
|
extend ActiveSupport::Concern
|
2016-07-23 19:28:12 -04:00
|
|
|
include IssuableCollections
|
2015-11-17 05:03:18 -05:00
|
|
|
|
2017-09-18 13:25:23 -04:00
|
|
|
# rubocop:disable Cop/ModuleWithInstanceVariables
|
2015-11-17 05:03:18 -05:00
|
|
|
def merge_requests
|
2017-11-07 08:34:12 -05:00
|
|
|
@finder_type = MergeRequestsFinder
|
|
|
|
@label = finder.labels.first
|
2016-02-17 08:52:12 -05:00
|
|
|
|
2017-11-07 08:34:12 -05:00
|
|
|
@merge_requests = issuables_collection.page(params[:page])
|
2017-01-23 15:40:25 -05:00
|
|
|
|
2017-11-07 08:34:12 -05:00
|
|
|
@issuable_meta_data = issuable_meta_data(@merge_requests, collection_type)
|
2015-11-17 05:03:18 -05:00
|
|
|
end
|
2017-11-06 09:40:19 -05:00
|
|
|
# rubocop:enable Cop/ModuleWithInstanceVariables
|
2016-11-27 05:33:15 -05:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def filter_params
|
|
|
|
super.merge(non_archived: true)
|
|
|
|
end
|
2015-11-17 05:03:18 -05:00
|
|
|
end
|