We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
canUserEditRepo
1 parent dd3bd2c commit 91f020dCopy full SHA for 91f020d
index.ts
@@ -434,7 +434,7 @@ collect.set('isActionJobRun', [
434
435
export const canUserEditOrganization = (): boolean => isOrganizationProfile() && exists('.pagehead-tabs-item[href$="/settings/profile"]');
436
437
-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"]');
438
439
/** Get the logged-in user’s username */
440
const getUsername = () => document.querySelector('meta[name="user-login"]')!.getAttribute('content')!;
0 commit comments