File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -567,6 +567,11 @@ TEST: addTests('isRepoNetworkGraph', [
567
567
568
568
export const isForkedRepo = ( ) : boolean => exists ( 'meta[name="octolytics-dimension-repository_is_fork"][content="true"]' ) ;
569
569
570
+ export const isForkingRepo = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'fork' ;
571
+ TEST: addTests ( 'isForkingRepo' , [
572
+ 'https://github.com/refined-github/refined-github/fork' ,
573
+ ] ) ;
574
+
570
575
export const isSingleGist = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ [ ^ / ] + \/ [ \d a - f ] { 20 , 32 } ( \/ [ \d a - f ] { 40 } ) ? $ / . test ( getCleanGistPathname ( url ) ) ;
571
576
TEST: addTests ( 'isSingleGist' , [
572
577
'https://gist.github.com/fregante/2205329b71218fa2c1d3' ,
You can’t perform that action at this time.
0 commit comments