MCPcopy
hub / github.com/nilbuild/githunt / getFilters

Method getFilters

src/containers/feed/index.js:44–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 getFilters() {
45 const filters = {};
46
47 filters.dateRange = this.getNextDateRange();
48 if (this.props.preference.language) {
49 filters.language = this.props.preference.language;
50 }
51
52 if (this.props.preference.options.token) {
53 filters.token = this.props.preference.options.token;
54 }
55
56 return filters;
57 }
58
59 getNextDateRange() {
60 const repositories = this.props.github.repositories || [];

Callers 1

fetchNextRepositoriesMethod · 0.95

Calls 1

getNextDateRangeMethod · 0.95

Tested by

no test coverage detected