Skip to content

Commit a460404

Browse files
Allow private repos
1 parent d5fdfe1 commit a460404

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/fetchers/repo-fetcher.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const fetchRepo = async (username, reponame) => {
7979
const isOrg = data.user === null && data.organization;
8080

8181
if (isUser) {
82-
if (!data.user.repository || data.user.repository.isPrivate) {
82+
if (!data.user.repository) {
8383
throw new Error("User Repository Not found");
8484
}
8585
return {
@@ -89,10 +89,7 @@ const fetchRepo = async (username, reponame) => {
8989
}
9090

9191
if (isOrg) {
92-
if (
93-
!data.organization.repository ||
94-
data.organization.repository.isPrivate
95-
) {
92+
if (!data.organization.repository) {
9693
throw new Error("Organization Repository Not found");
9794
}
9895
return {

0 commit comments

Comments
 (0)