Skip to content

Commit

Permalink
Add isEmptyRepo (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 authored May 19, 2020
1 parent f8f7235 commit c41b668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ collect.set('isRepo', [
'https://github.com/sindresorhus/refined-github/issues/templates/edit', // Gotcha for isRepoIssueList
]);

export const isEmptyRepo = (): boolean => isRepo() && exists('.blankslate');

export const isRepoTaxonomyDiscussionList = (url: URL | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepoPath(url)!);
collect.set('isRepoTaxonomyDiscussionList', [
'https://github.com/sindresorhus/refined-github/labels/Priority%3A%20critical',
Expand Down

0 comments on commit c41b668

Please sign in to comment.