From 30fe2fbaa774530d18648f7c38617406d1a3e53f Mon Sep 17 00:00:00 2001 From: yakov116 <16872793+yakov116@users.noreply.github.com> Date: Sun, 12 Jul 2020 10:22:25 -0400 Subject: [PATCH] Fix `canUserEditRepo` for "Repository refresh" --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 0e951198..97d0732c 100644 --- a/index.ts +++ b/index.ts @@ -434,7 +434,7 @@ collect.set('isActionJobRun', [ export const canUserEditOrganization = (): boolean => isOrganizationProfile() && exists('.pagehead-tabs-item[href$="/settings/profile"]'); -export const canUserEditRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"]'); +export const canUserEditRepo = (): boolean => isRepo() && exists('.reponav-item[href$="/settings"], [data-tab-item="settings-tab"]'); /** Get the logged-in user’s username */ const getUsername = () => document.querySelector('meta[name="user-login"]')!.getAttribute('content')!;