File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,8 @@ export const _isRepoRoot = [
307
307
'https://github.com/sindresorhus/refined-github/tree/03fa6b8b4d6e68dea9dc9bee1d197ef5d992fbd6/' ,
308
308
'https://github.com/sindresorhus/refined-github/tree/57bf4' ,
309
309
'https://github.com/sindresorhus/refined-github?files=1' ,
310
- 'https://github.com/sindresorhus/refined-github/tree/master?files=1'
310
+ 'https://github.com/sindresorhus/refined-github/tree/master?files=1' ,
311
+ 'https://github.com/sindresorhus/branches'
311
312
] ;
312
313
313
314
export const isRepoSearch = ( ) : boolean => location . pathname . slice ( 1 ) . split ( '/' ) [ 2 ] === 'search' ;
@@ -366,6 +367,11 @@ export const _isTrending = [
366
367
'https://github.com/trending/unknown'
367
368
] ;
368
369
370
+ export const isBranches = ( ) : boolean => getRepoPath ( ) ?. startsWith ( 'branches' ) ?? false ;
371
+ export const _isBranches = [
372
+ 'https://github.com/sindresorhus/refined-github/branches'
373
+ ] ;
374
+
369
375
export const isUserProfile = ( ) : boolean => select . exists ( '.user-profile-nav' ) ;
370
376
export const _isUserProfile = domBased ;
371
377
You can’t perform that action at this time.
0 commit comments