Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename isAction to isMarketplaceAction #42

Merged
merged 2 commits into from
Sep 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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