Skip to content

Commit 4f5bf43

Browse files
authored
Improve PR detection in all discussion lists (#2587)
1 parent 01249e0 commit 4f5bf43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export const _isConflict = [
170170
'https://github.com/sindresorhus/refined-github/pull/148/conflicts'
171171
];
172172

173+
/**
174+
* Do not use this detection if you're looking for PRs, they may appear mixed with issues in search. Use `isDiscussionList`
175+
*/
173176
export const isPRList = (): boolean => location.pathname === '/pulls' || getRepoPath() === 'pulls';
174177
export const _isPRList = [
175178
'https://github.com/pulls',

0 commit comments

Comments
 (0)