Skip to content

Commit eecc00f

Browse files
committed
Filter out private repos
close #65
1 parent 04043af commit eecc00f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async function validate() {
173173
}
174174
const repos = await fetchRepoPage(orgs[index]);
175175
const next = await sequenced(index + 1);
176-
return repos.concat(next);
176+
return repos.concat(next).filter(r => !r.isPrivate);
177177
}
178178
const allrepos = await sequenced(0);
179179
const fullName = r => r.owner.login + '/' + r.name;
@@ -200,7 +200,7 @@ async function validate() {
200200
const allgroups = new Set();
201201
const groupRepos = {};
202202
for (const r of allrepos) {
203-
if (!r || r.isArchived || r.isPrivate) {
203+
if (!r || r.isArchived) {
204204
continue;
205205
}
206206

0 commit comments

Comments
 (0)