From 42feee41031d9fa23d9c403dfee6fd035914ca33 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Mon, 16 Nov 2020 23:42:57 +0100 Subject: [PATCH 1/2] 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); From 39bfd3e3d1df8f7022c243bfdd59e6bd9a0248e7 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Tue, 17 Nov 2020 17:01:23 +0100 Subject: [PATCH 2/2] feat(board): suggest involves filter --- packages/board/src/BoardFilter.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/board/src/BoardFilter.svelte b/packages/board/src/BoardFilter.svelte index 8297fb35..ab693b7c 100644 --- a/packages/board/src/BoardFilter.svelte +++ b/packages/board/src/BoardFilter.svelte @@ -92,6 +92,7 @@ 'repo', 'reviewer', 'milestone', + 'involves', 'created', 'updated', 'is'