We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hasFiles
1 parent 91f1e93 commit b68c0e8Copy full SHA for b68c0e8
index.ts
@@ -601,6 +601,12 @@ export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boo
601
|| isCompare(url)
602
|| isBlame(url);
603
604
+collect.set('hasFiles', combinedTestOnly);
605
+export const hasFiles = (url: URL | HTMLAnchorElement | Location = location): boolean => // Has a list of files
606
+ isCommit(url)
607
+ || isCompare(url)
608
+ || isPRFiles(url);
609
+
610
export const isMarketplaceAction = (url: URL | HTMLAnchorElement | Location = location): boolean => url.pathname.startsWith('/marketplace/actions/');
611
collect.set('isMarketplaceAction', [
612
'https://github.com/marketplace/actions/urlchecker-action',
0 commit comments