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', [
740740
741741export const isUserTheOrganizationOwner = ( ) : boolean => isOrganizationProfile ( ) && exists ( '[aria-label="Organization"] [data-tab-item="org-header-settings-tab"]' ) ;
742742
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 ;
744748
745749export 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 ) ) ;
746750TEST: addTests ( 'isNewRepo' , [
You can’t perform that action at this time.
0 commit comments