Skip to content

Commit 25e2e70

Browse files
authored
Add isConversation (#38)
1 parent d023280 commit 25e2e70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ collect.set('isIssue', [
106106
export const isConversationList = (url: URL | Location = location): boolean => isGlobalConversationList(url) || isRepoConversationList(url);
107107
collect.set('isConversationList', combinedTestOnly);
108108

109+
export const isConversation = (url: URL | Location = location): boolean => isIssue(url) || isPRConversation(url);
110+
collect.set('isConversation', combinedTestOnly);
111+
109112
export const isLabelList = (url: URL | Location = location): boolean => getRepoPath(url) === 'labels';
110113
collect.set('isLabelList', [
111114
'https://github.com/sindresorhus/refined-github/labels',

0 commit comments

Comments
 (0)