Skip to content

Commit 7a0bbf8

Browse files
committed
Filter private repos by privacy field.
1 parent 55181e1 commit 7a0bbf8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/fetchers/top-languages.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const fetcher = (variables, token) => {
2424
repositories(ownerAffiliations: OWNER, isFork: false, privacy: PUBLIC, first: 100) {
2525
nodes {
2626
name
27-
isPrivate
2827
languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
2928
edges {
3029
size
@@ -108,8 +107,7 @@ const fetchTopLanguages = async (
108107
// filter out repositories to be hidden
109108
repoNodes = repoNodes
110109
.sort((a, b) => b.size - a.size)
111-
.filter((repo) => !repoToHide[repo.name])
112-
.filter((repo) => !repo.isPrivate);
110+
.filter((repo) => !repoToHide[repo.name]);
113111

114112
let repoCount = 0;
115113

0 commit comments

Comments
 (0)