Skip to content

Commit 328dba8

Browse files
Add isIssueList (#246)
1 parent 52d5e2a commit 328dba8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

index.ts

Lines changed: 6 additions & 6 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);
@@ -540,8 +540,8 @@ TEST: addTests('isRepoHome', [
540540
'https://github.com/sindresorhus/search',
541541
'https://github.com/sindresorhus/branches',
542542
'https://github.com/sindresorhus/refined-github?files=1',
543-
'https://github.com/pullsuser/my-library', // Gotcha for isRepoPRList
544-
'https://github.com/issuesuser/my-library', // Gotcha for isRepoIssueList
543+
'https://github.com/pullsuser/my-library',
544+
'https://github.com/issuesuser/my-library',
545545
]);
546546

547547
export type RepoExplorerInfo = {

0 commit comments

Comments
 (0)