From a73776717c09766ab63f182fbf32082078a0baa6 Mon Sep 17 00:00:00 2001 From: Federico Date: Wed, 14 Jan 2026 15:06:37 +0700 Subject: [PATCH] Drop renamed `getUsername` and `canUserEditRepo` --- index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/index.ts b/index.ts index 18bfef0a..8f9156c3 100644 --- a/index.ts +++ b/index.ts @@ -821,9 +821,6 @@ export const isUserTheOrganizationOwner = (): boolean => isOrganizationProfile() export const canUserAdminRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"], [data-tab-item$="settings-tab"]'); -/** @deprecated Use `canUserAdminRepo` */ -export const canUserEditRepo = canUserAdminRepo; - export const isNewRepo = (url: URL | HTMLAnchorElement | Location = location): boolean => !isGist(url) && (url.pathname === '/new' || /^organizations\/[^/]+\/repositories\/new$/.test(getCleanPathname(url))); TEST: addTests('isNewRepo', [ 'https://github.com/new', @@ -925,8 +922,6 @@ const getRepo = (url?: URL | HTMLAnchorElement | Location | string): RepositoryI export const utils = { getOrg, - /** @deprecated Use `getLoggedInUser` */ - getUsername: getLoggedInUser, getLoggedInUser, getCleanPathname, getCleanGistPathname,