Skip to content

Commit

Permalink
Rename isAction to isMarketplaceAction (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 committed Sep 30, 2020
1 parent 0f8a426 commit 7f497ca
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,6 @@ collect.set('isSingleTag', [
'https://github.com/sindresorhus/refined-github/releases/tag/0.2.1',
]);

/** @deprecated use isSingleTag instead */
export const isSingleTagPage = isSingleTag;
collect.set('isSingleTagPage', combinedTestOnly);

collect.set('hasComments', combinedTestOnly);
export const hasComments = (url: URL | Location = location): boolean =>
isPR(url) ||
Expand All @@ -445,17 +441,13 @@ export const hasCode = (url: URL | Location = location): boolean => // Static co
isCompare(url) ||
isBlame(url);

export const isActions = (url: URL | Location = location): boolean => url.pathname.startsWith('/marketplace/actions/');
collect.set('isActions', [
export const isMarketplaceAction = (url: URL | Location = location): boolean => url.pathname.startsWith('/marketplace/actions/');
collect.set('isMarketplaceAction', [
'https://github.com/marketplace/actions/urlchecker-action',
'https://github.com/marketplace/actions/github-action-for-assignee-to-reviewer',
'https://github.com/marketplace/actions/hugo-actions',
]);

/** @deprecated use isActions instead */
export const isActionPage = isActions;
collect.set('isActionPage', combinedTestOnly);

export const isActionJobRun = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('runs/');
collect.set('isActionJobRun', [
'https://github.com/sindresorhus/refined-github/runs/639481849',
Expand Down

0 comments on commit 7f497ca

Please sign in to comment.