Skip to content

Commit 3e30858

Browse files
authored
Drop renamed getUsername and canUserEditRepo (#219)
1 parent 577f7b4 commit 3e30858

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,6 @@ export const isUserTheOrganizationOwner = (): boolean => isOrganizationProfile()
821821

822822
export const canUserAdminRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]');
823823

824-
/** @deprecated Use `canUserAdminRepo` */
825-
export const canUserEditRepo = canUserAdminRepo;
826-
827824
export const isNewRepo = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && (url.pathname === '/new' || /^organizations\/[^/]+\/repositories\/new$/.test(getCleanPathname(url)));
828825
TEST: addTests('isNewRepo', [
829826
'https://github.com/new',
@@ -925,8 +922,6 @@ const getRepo = (url?: URL | HTMLAnchorElement | Location | string): RepositoryI
925922

926923
export const utils = {
927924
getOrg,
928-
/** @deprecated Use `getLoggedInUser` */
929-
getUsername: getLoggedInUser,
930925
getLoggedInUser,
931926
getCleanPathname,
932927
getCleanGistPathname,

0 commit comments

Comments
 (0)