Skip to content

Commit

Permalink
Add isConversation (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 authored Sep 21, 2020
1 parent d023280 commit 25e2e70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ collect.set('isIssue', [
export const isConversationList = (url: URL | Location = location): boolean => isGlobalConversationList(url) || isRepoConversationList(url);
collect.set('isConversationList', combinedTestOnly);

export const isConversation = (url: URL | Location = location): boolean => isIssue(url) || isPRConversation(url);
collect.set('isConversation', combinedTestOnly);

export const isLabelList = (url: URL | Location = location): boolean => getRepoPath(url) === 'labels';
collect.set('isLabelList', [
'https://github.com/sindresorhus/refined-github/labels',
Expand Down

0 comments on commit 25e2e70

Please sign in to comment.