Skip to content

Commit

Permalink
Add isBlank (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheap-glitch committed Mar 28, 2022
1 parent c0385b8 commit f92d888
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 @@ -340,6 +340,8 @@ export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel=

export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');

export const isBlank = (): boolean => exists('main .blankslate');

export const isRepoTaxonomyConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepo(url)?.path!);
collect.set('isRepoTaxonomyConversationList', [
'https://github.com/sindresorhus/refined-github/labels/bug',
Expand Down

0 comments on commit f92d888

Please sign in to comment.