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.
isEmptyRepo
1 parent 6f5d835 commit 21fd571Copy full SHA for 21fd571
index.ts
@@ -400,6 +400,9 @@ TEST: addTests('hasRepoHeader', combinedTestOnly);
400
// On empty repos, there's only isRepoHome; this element is found in `<head>`
401
export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel="canonical"]');
402
403
+/**
404
+ * @deprecated Doesn't work anymore. Use API instead.
405
+ */
406
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
407
408
export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_public"][content="true"]');
0 commit comments