From 25e2e702363be08c733d3c5c7e8b54ef33f0add5 Mon Sep 17 00:00:00 2001 From: yakov116 <16872793+yakov116@users.noreply.github.com> Date: Mon, 21 Sep 2020 12:25:10 -0400 Subject: [PATCH] Add `isConversation` (#38) --- index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.ts b/index.ts index ce65aff..169c1ed 100644 --- a/index.ts +++ b/index.ts @@ -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',