We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isPublicRepo
1 parent f666c7d commit 36b825eCopy full SHA for 36b825e
index.ts
@@ -362,7 +362,7 @@ export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel=
362
363
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
364
365
-export const isPublicRepo = (): boolean => Boolean(isRepo() && $('#repository-container-header .Label')!.textContent!.startsWith('Public'));
+export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_public"][content="true"]');
366
367
export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('#repository-container-header .Label')!.textContent!.endsWith('archive'));
368
0 commit comments