Skip to content

Commit 22fedea

Browse files
Deprecate isEmptyRepo (#238)
1 parent 7c9b875 commit 22fedea

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
@@ -404,6 +404,9 @@ export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists([
404404
'#empty-setup-clone-url',
405405
].join(','));
406406

407+
/**
408+
* @deprecated Doesn't work anymore. Use `isEmptyRepoRoot` or API instead.
409+
*/
407410
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
408411

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

0 commit comments

Comments
 (0)