Skip to content

Commit c41b668

Browse files
authored
Add isEmptyRepo (#7)
1 parent f8f7235 commit c41b668

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
@@ -239,6 +239,8 @@ collect.set('isRepo', [
239239
'https://github.com/sindresorhus/refined-github/issues/templates/edit', // Gotcha for isRepoIssueList
240240
]);
241241

242+
export const isEmptyRepo = (): boolean => isRepo() && exists('.blankslate');
243+
242244
export const isRepoTaxonomyDiscussionList = (url: URL | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepoPath(url)!);
243245
collect.set('isRepoTaxonomyDiscussionList', [
244246
'https://github.com/sindresorhus/refined-github/labels/Priority%3A%20critical',

0 commit comments

Comments
 (0)