Skip to content

Commit

Permalink
feat(search): add involves filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and Joanne Nolan committed Nov 30, 2020
1 parent f3f6ba8 commit 79e4c1e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/app/lib/apps/search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79e4c1e

Please sign in to comment.