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
|
|
|
|
|
|
|
def merge_requests
|
2016-07-23 19:28:12 -04:00
|
|
|
@label = merge_requests_finder.labels.first
|
2016-02-17 08:52:12 -05:00
|
|
|
|
2016-07-23 19:28:12 -04:00
|
|
|
@merge_requests = merge_requests_collection
|
|
|
|
.page(params[:page])
|
2017-01-23 15:40:25 -05:00
|
|
|
|
|
|
|
@collection_type = "MergeRequest"
|
2017-02-16 16:30:00 -05:00
|
|
|
@issuable_meta_data = issuable_meta_data(@merge_requests, @collection_type)
|
2015-11-17 05:03:18 -05:00
|
|
|
end
|
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
|