Skip to content

Commit 7d91bb9

Browse files
authored
Add isEmptyRepo (#36)
1 parent 6e8d814 commit 7d91bb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ collect.set('isRepo', [
249249

250250
export const isEmptyRepoRoot = (): boolean => isRepoRoot() && exists('.blankslate');
251251

252+
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
253+
252254
export const isRepoTaxonomyConversationList = (url: URL | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepoPath(url)!);
253255
collect.set('isRepoTaxonomyConversationList', [
254256
'https://github.com/sindresorhus/refined-github/labels/Priority%3A%20critical',

0 commit comments

Comments
 (0)