File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -453,6 +453,17 @@ collect.set('isActionJobRun', [
453453 'https://github.com/sindresorhus/refined-github/runs/639481849' ,
454454] ) ;
455455
456+ export const isNewAction = ( url : URL | Location = location ) : boolean => String ( getRepoPath ( url ) ) === 'actions/new' ;
457+ collect . set ( 'isNewAction' , [
458+ 'https://github.com/sindresorhus/refined-github/actions/new' ,
459+ ] ) ;
460+
461+ export const isRepositoryActions = ( url : URL | Location = location ) : boolean => String ( getRepoPath ( url ) ) . startsWith ( 'actions' ) ;
462+ collect . set ( 'isRepositoryActions' , [
463+ 'https://github.com/fregante/github-url-detection/actions' ,
464+ 'https://github.com/sindresorhus/refined-github/actions/new' ,
465+ ] ) ;
466+
456467export const canUserEditOrganization = ( ) : boolean => isOrganizationProfile ( ) && exists ( '.pagehead-tabs-item[href$="/settings/profile"]' ) ;
457468
458469export const canUserEditRepo = ( ) : boolean => isRepo ( ) && exists ( '.reponav-item[href$="/settings"], [data-tab-item="settings-tab"]' ) ;
You can’t perform that action at this time.
0 commit comments