Skip to content

Commit

Permalink
Limit isRepositoryActions to the main Actions page (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Federico <me@fregante.com>
  • Loading branch information
yakov116 and fregante committed Oct 8, 2020
1 parent d4eb3ff commit 5b46659
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,9 @@ collect.set('isNewAction', [
'https://github.com/sindresorhus/refined-github/actions/new',
]);

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

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

0 comments on commit 5b46659

Please sign in to comment.