Skip to content

Commit 9aa12dc

Browse files
committed
Add isActionRun
1 parent a3ee102 commit 9aa12dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,14 @@ collect.set('isMarketplaceAction', [
451451
export const isActionJobRun = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('runs/');
452452
collect.set('isActionJobRun', [
453453
'https://github.com/sindresorhus/refined-github/runs/639481849',
454+
'https://github.com/fregante/github-url-detection/runs/1224552520?check_suite_focus=true',
455+
]);
456+
457+
export const isActionRun = (url: URL | Location = location): boolean => /^(actions\/)?runs/.test(getRepoPath(url)!);
458+
collect.set('isActionRun', [
459+
'https://github.com/sindresorhus/refined-github/runs/639481849',
460+
'https://github.com/fregante/github-url-detection/runs/1224552520?check_suite_focus=true',
461+
'https://github.com/fregante/github-url-detection/actions/runs/294962314',
454462
]);
455463

456464
export const isNewAction = (url: URL | Location = location): boolean => String(getRepoPath(url)) === 'actions/new';

0 commit comments

Comments
 (0)