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 @@ -67,7 +67,8 @@ export const _isDashboard = [
67
67
'https://github.com/orgs/edit/dashboard' ,
68
68
'https://github.big-corp.com/' ,
69
69
'https://not-github.com/' ,
70
- 'https://my-little-hub.com/'
70
+ 'https://my-little-hub.com/' ,
71
+ 'https://github.com/?tab=repositories' // Gotcha for `isUserProfileRepoTab`
71
72
] ;
72
73
73
74
export const isEnterprise = ( ) : boolean => location . hostname !== 'github.com' && location . hostname !== 'gist.github.com' ;
@@ -373,6 +374,11 @@ export const _isBranches = [
373
374
export const isUserProfile = ( ) : boolean => select . exists ( '.user-profile-nav' ) ;
374
375
export const _isUserProfile = domBased ;
375
376
377
+ export const isUserProfileRepoTab = ( ) : boolean =>
378
+ isUserProfile ( ) &&
379
+ new URLSearchParams ( location . search ) . get ( 'tab' ) === 'repositories' ;
380
+ export const _isUserProfileRepoTab = domBased ;
381
+
376
382
export const isSingleTagPage = ( ) : boolean => / ^ ( r e l e a s e s \/ t a g ) / . test ( getRepoPath ( ) ! ) ;
377
383
export const _isSingleTagPage = [
378
384
'https://github.com/sindresorhus/refined-github/releases/tag/v1.0.0-beta.4' ,
You can’t perform that action at this time.
0 commit comments