From 79e4c1e3c54cd28771d0fbecb81295a2563df716 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Mon, 16 Nov 2020 23:42:57 +0100 Subject: [PATCH] feat(search): add involves filter --- packages/app/lib/apps/search/Search.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/app/lib/apps/search/Search.js b/packages/app/lib/apps/search/Search.js index cd0ba9d2..9047c469 100644 --- a/packages/app/lib/apps/search/Search.js +++ b/packages/app/lib/apps/search/Search.js @@ -177,6 +177,17 @@ function Search(logger, store) { }; }, + involves: function involvesFilter(name) { + + return function filterInvolves(issue) { + return ( + filters.assignee(name)(issue) || + filters.author(name)(issue) || + filters.reviewer(name)(issue) + ); + }; + }, + created: temporalFilter(function(matchTemporal) { return function filterCreated(issue) { return matchTemporal(issue.created_at);