Skip to content

Commit a64d181

Browse files
add isIssueList
1 parent c2e674d commit a64d181

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ TEST: addTests('isIssue', [
215215
'https://github.com/sindresorhus/refined-github/issues/146',
216216
]);
217217

218-
export const isIssueOrPRList = (url: URL | HTMLAnchorElement | Location = location): boolean =>
219-
isGlobalIssueOrPRList(url)
220-
|| isRepoIssueOrPRList(url)
221-
|| isMilestone(url);
218+
export const isIssueList = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepoIssueList(url) || isGlobalIssueList(url) || isMilestone(url);
219+
TEST: addTests('isIssueList', combinedTestOnly)
220+
221+
export const isIssueOrPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => isIssueList(url) || isPRList(url);
222222
TEST: addTests('isIssueOrPRList', combinedTestOnly);
223223

224224
export const isConversation = (url: URL | HTMLAnchorElement | Location = location): boolean => isIssue(url) || isPRConversation(url);

0 commit comments

Comments
 (0)