File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,16 @@ collect.set('isFileFinder', [
386
386
'https://github.com/sindresorhus/refined-github/find/master' ,
387
387
] ) ;
388
388
389
+ export const isRepoForksList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'network/members' ;
390
+ collect . set ( 'isRepoForksList' , [
391
+ 'https://github.com/sindresorhus/refined-github/network/members' ,
392
+ ] ) ;
393
+
394
+ export const isRepoNetworkGraph = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'network' ;
395
+ collect . set ( 'isRepoNetworkGraph' , [
396
+ 'https://github.com/sindresorhus/refined-github/network' ,
397
+ ] ) ;
398
+
389
399
export const isForkedRepo = ( ) : boolean => exists ( 'meta[name="octolytics-dimension-repository_is_fork"][content="true"]' ) ;
390
400
391
401
export const isSingleGist = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => isGist ( url ) && / ^ \/ ( g i s t \/ ) ? [ ^ / ] + \/ [ \d a - f ] { 32 } $ / . test ( url . pathname ) ;
You can’t perform that action at this time.
0 commit comments