@@ -79,8 +79,8 @@ collect.set('isGist', [
79
79
'https://my-little-hub.com/gist' ,
80
80
] ) ;
81
81
82
- export const isGlobalDiscussionList = ( url : URL | Location = location ) : boolean => [ 'issues' , 'pulls' ] . includes ( url . pathname . split ( '/' , 2 ) [ 1 ] ) ;
83
- collect . set ( 'isGlobalDiscussionList ' , [
82
+ export const isGlobalConversationList = ( url : URL | Location = location ) : boolean => [ 'issues' , 'pulls' ] . includes ( url . pathname . split ( '/' , 2 ) [ 1 ] ) ;
83
+ collect . set ( 'isGlobalConversationList ' , [
84
84
'https://github.com/issues' ,
85
85
'https://github.com/issues?q=is%3Apr+is%3Aopen' ,
86
86
'https://github.com/issues/assigned' ,
@@ -102,8 +102,8 @@ collect.set('isIssue', [
102
102
'https://github.com/sindresorhus/refined-github/issues/146' ,
103
103
] ) ;
104
104
105
- export const isDiscussionList = ( url : URL | Location = location ) : boolean => isGlobalDiscussionList ( url ) || isRepoDiscussionList ( url ) ;
106
- collect . set ( 'isDiscussionList ' , combinedTestOnly ) ;
105
+ export const isConversationList = ( url : URL | Location = location ) : boolean => isGlobalConversationList ( url ) || isRepoConversationList ( url ) ;
106
+ collect . set ( 'isConversationList ' , combinedTestOnly ) ;
107
107
108
108
export const isLabelList = ( url : URL | Location = location ) : boolean => getRepoPath ( url ) === 'labels' ;
109
109
collect . set ( 'isLabelList' , [
@@ -172,7 +172,7 @@ collect.set('isPRConflicts', [
172
172
export const isConflict = isPRConflicts ;
173
173
collect . set ( 'isConflict' , combinedTestOnly ) ;
174
174
175
- /** Any `isDiscussionList ` can display both issues and PRs, prefer that detection. `isPRList` only exists because this page has PR-specific filters like the "Reviews" dropdown */
175
+ /** Any `isConversationList ` can display both issues and PRs, prefer that detection. `isPRList` only exists because this page has PR-specific filters like the "Reviews" dropdown */
176
176
export const isPRList = ( url : URL | Location = location ) : boolean => url . pathname === '/pulls' || getRepoPath ( url ) === 'pulls' ;
177
177
collect . set ( 'isPRList' , [
178
178
'https://github.com/pulls' ,
@@ -243,8 +243,8 @@ collect.set('isRepo', [
243
243
'https://github.com/sindresorhus/refined-github/issues/146' ,
244
244
'https://github.com/sindresorhus/notifications/' ,
245
245
'https://github.com/sindresorhus/refined-github/pull/148' ,
246
- 'https://github.com/sindresorhus/refined-github/milestones/new' , // Gotcha for isRepoTaxonomyDiscussionList
247
- 'https://github.com/sindresorhus/refined-github/milestones/1/edit' , // Gotcha for isRepoTaxonomyDiscussionList
246
+ 'https://github.com/sindresorhus/refined-github/milestones/new' , // Gotcha for isRepoTaxonomyConversationList
247
+ 'https://github.com/sindresorhus/refined-github/milestones/1/edit' , // Gotcha for isRepoTaxonomyConversationList
248
248
'https://github.com/sindresorhus/refined-github/issues/new/choose' , // Gotcha for isRepoIssueList
249
249
'https://github.com/sindresorhus/refined-github/issues/templates/edit' , // Gotcha for isRepoIssueList
250
250
] ) ;
@@ -254,17 +254,17 @@ export const isEmptyRepo = (): boolean => isRepo() && exists('.blankslate');
254
254
255
255
export const isEmptyRepoRoot = ( ) : boolean => isRepoRoot ( ) && exists ( '.blankslate' ) ;
256
256
257
- export const isRepoTaxonomyDiscussionList = ( url : URL | Location = location ) : boolean => / ^ l a b e l s \/ .+ | ^ m i l e s t o n e s \/ \d + (? ! \/ e d i t ) / . test ( getRepoPath ( url ) ! ) ;
258
- collect . set ( 'isRepoTaxonomyDiscussionList ' , [
257
+ export const isRepoTaxonomyConversationList = ( url : URL | Location = location ) : boolean => / ^ l a b e l s \/ .+ | ^ m i l e s t o n e s \/ \d + (? ! \/ e d i t ) / . test ( getRepoPath ( url ) ! ) ;
258
+ collect . set ( 'isRepoTaxonomyConversationList ' , [
259
259
'https://github.com/sindresorhus/refined-github/labels/Priority%3A%20critical' ,
260
260
'https://github.com/sindresorhus/refined-github/milestones/1' ,
261
261
] ) ;
262
262
263
- export const isRepoDiscussionList = ( url : URL | Location = location ) : boolean =>
263
+ export const isRepoConversationList = ( url : URL | Location = location ) : boolean =>
264
264
isRepoPRList ( url ) ||
265
265
isRepoIssueList ( url ) ||
266
- isRepoTaxonomyDiscussionList ( url ) ;
267
- collect . set ( 'isRepoDiscussionList ' , combinedTestOnly ) ;
266
+ isRepoTaxonomyConversationList ( url ) ;
267
+ collect . set ( 'isRepoConversationList ' , combinedTestOnly ) ;
268
268
269
269
export const isRepoPRList = ( url : URL | Location = location ) : boolean => String ( getRepoPath ( url ) ) . startsWith ( 'pulls' ) ;
270
270
collect . set ( 'isRepoPRList' , [
0 commit comments