Skip to content

Commit 21fd571

Browse files
Deprecate isEmptyRepo
1 parent 6f5d835 commit 21fd571

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ TEST: addTests('hasRepoHeader', combinedTestOnly);
400400
// On empty repos, there's only isRepoHome; this element is found in `<head>`
401401
export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel="canonical"]');
402402

403+
/**
404+
* @deprecated Doesn't work anymore. Use API instead.
405+
*/
403406
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
404407

405408
export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_public"][content="true"]');

0 commit comments

Comments
 (0)