Generic filter factory, filtering for pull requests + karma tests