Skip to content

Commit 9cc3ddc

Browse files
Merge branch 'main' into is-issue-list
2 parents 3ca6fa2 + 52d5e2a commit 9cc3ddc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ TEST: addTests('isGlobalPRList', [
202202
'https://github.com//pulls/',
203203
]);
204204

205-
export const isGlobalIssueOrPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => isGlobalIssueList(url) || isGlobalPRList(url);
205+
export const isGlobalIssueOrPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => isGlobalPRList(url) || isGlobalIssueList(url);
206206
TEST: addTests('isGlobalIssueOrPRList', combinedTestOnly);
207207

208208
export const isGlobalSearchResults = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname === '/search' && new URLSearchParams(url.search).get('q') !== null;
@@ -327,7 +327,7 @@ TEST: addTests('isPRConflicts', [
327327
]);
328328

329329
/** Any `isIssueOrPRList` can display both issues and PRs, prefer that detection. `isPRList` only exists because this page has PR-specific filters like the "Reviews" dropdown */
330-
export const isPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => isGlobalPRList(url) || isRepoPRList(url);
330+
export const isPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepoPRList(url) || isGlobalPRList(url);
331331
TEST: addTests('isPRList', combinedTestOnly);
332332

333333
export const isPRCommit = (url: URL | HTMLAnchorElement | Location = location): boolean => /^pull\/\d+\/(commits|changes)\/[\da-f]{7,40}$/.test(getRepo(url)?.path);

0 commit comments

Comments
 (0)