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.
1 parent 2a81f10 commit dcea46eCopy full SHA for dcea46e
index.ts
@@ -397,7 +397,12 @@ TEST: addTests('isRepo', [
397
export const hasRepoHeader = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepo(url) && !isRepoSearch(url);
398
TEST: addTests('hasRepoHeader', combinedTestOnly);
399
400
-export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists('.blankslate-icon, #empty-setup-clone-url');
+export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists([
401
+ // If you don't have write access
402
+ '.blankslate-icon',
403
+ // If you have write access
404
+ '#empty-setup-clone-url',
405
+].join(','));
406
407
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
408
0 commit comments