Skip to content

Commit 12b56d5

Browse files
authored
Add action-used-by-link feature (#3033)
1 parent 77aab28 commit 12b56d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,3 +407,10 @@ export const hasCode = (): boolean => // Static code, not the editor
407407
isGist() ||
408408
isCompare() ||
409409
isBlame();
410+
411+
export const isActionPage = (): boolean => location.pathname.startsWith('/marketplace/actions/');
412+
export const _isActionPage = [
413+
'https://github.com/marketplace/actions/urlchecker-action',
414+
'https://github.com/marketplace/actions/github-action-for-assignee-to-reviewer',
415+
'https://github.com/marketplace/actions/hugo-actions'
416+
];

0 commit comments

Comments
 (0)