File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -740,7 +740,11 @@ TEST: addTests('isRepositoryActions', [
740
740
741
741
export const isUserTheOrganizationOwner = ( ) : boolean => isOrganizationProfile ( ) && exists ( '[aria-label="Organization"] [data-tab-item="org-header-settings-tab"]' ) ;
742
742
743
- export const canUserEditRepo = ( ) : boolean => isRepo ( ) && exists ( '.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]' ) ;
743
+
744
+ export const canUserAdminRepo = ( ) : boolean => isRepo ( ) && exists ( '.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]' ) ;
745
+
746
+ /** @deprecated Use `canUserAdminRepo` */
747
+ export const canUserEditRepo = canUserAdminRepo ;
744
748
745
749
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 ) ) ;
746
750
TEST: addTests ( 'isNewRepo' , [
You can’t perform that action at this time.
0 commit comments