Skip to content

Commit 7f497ca

Browse files
authored
Rename isAction to isMarketplaceAction (#42)
1 parent 0f8a426 commit 7f497ca

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

index.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,6 @@ collect.set('isSingleTag', [
419419
'https://github.com/sindresorhus/refined-github/releases/tag/0.2.1',
420420
]);
421421

422-
/** @deprecated use isSingleTag instead */
423-
export const isSingleTagPage = isSingleTag;
424-
collect.set('isSingleTagPage', combinedTestOnly);
425-
426422
collect.set('hasComments', combinedTestOnly);
427423
export const hasComments = (url: URL | Location = location): boolean =>
428424
isPR(url) ||
@@ -445,17 +441,13 @@ export const hasCode = (url: URL | Location = location): boolean => // Static co
445441
isCompare(url) ||
446442
isBlame(url);
447443

448-
export const isActions = (url: URL | Location = location): boolean => url.pathname.startsWith('/marketplace/actions/');
449-
collect.set('isActions', [
444+
export const isMarketplaceAction = (url: URL | Location = location): boolean => url.pathname.startsWith('/marketplace/actions/');
445+
collect.set('isMarketplaceAction', [
450446
'https://github.com/marketplace/actions/urlchecker-action',
451447
'https://github.com/marketplace/actions/github-action-for-assignee-to-reviewer',
452448
'https://github.com/marketplace/actions/hugo-actions',
453449
]);
454450

455-
/** @deprecated use isActions instead */
456-
export const isActionPage = isActions;
457-
collect.set('isActionPage', combinedTestOnly);
458-
459451
export const isActionJobRun = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('runs/');
460452
collect.set('isActionJobRun', [
461453
'https://github.com/sindresorhus/refined-github/runs/639481849',

0 commit comments

Comments
 (0)