File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -489,9 +489,10 @@ export const canUserEditOrganization = (): boolean => isOrganizationProfile() &&
489
489
490
490
export const canUserEditRepo = ( ) : boolean => isRepo ( ) && exists ( '.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]' ) ;
491
491
492
- export const isNewRepo = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname === '/new' ;
492
+ export const isNewRepo = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => url . pathname === '/new' || / ^ o r g a n i z a t i o n s \/ [ ^ / ] + \/ r e p o s i t o r i e s \/ n e w $ / . test ( getCleanPathname ( url ) ) ;
493
493
collect . set ( 'isNewRepo' , [
494
494
'https://github.com/new' ,
495
+ 'https://github.com/organizations/npmhub/repositories/new' ,
495
496
] ) ;
496
497
497
498
/** Get the logged-in user’s username */
You can’t perform that action at this time.
0 commit comments