Skip to content

Commit 5b46659

Browse files
yakov116fregante
andauthored
Limit isRepositoryActions to the main Actions page (#44)
Co-authored-by: Federico <me@fregante.com>
1 parent d4eb3ff commit 5b46659

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,9 @@ collect.set('isNewAction', [
458458
'https://github.com/sindresorhus/refined-github/actions/new',
459459
]);
460460

461-
export const isRepositoryActions = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('actions');
461+
export const isRepositoryActions = (url: URL | Location = location): boolean => getRepoPath(url) === 'actions';
462462
collect.set('isRepositoryActions', [
463463
'https://github.com/fregante/github-url-detection/actions',
464-
'https://github.com/sindresorhus/refined-github/actions/new',
465464
]);
466465

467466
export const canUserEditOrganization = (): boolean => isOrganizationProfile() && exists('.pagehead-tabs-item[href$="/settings/profile"]');

0 commit comments

Comments
 (0)