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.
isRepoWiki
1 parent ac26eec commit f1ed5f1Copy full SHA for f1ed5f1
index.ts
@@ -385,6 +385,11 @@ collect.set('isRepoTree', [
385
'https://github.com/sindresorhus/refined-github/tree/57bf435ee12d14b482df0bbd88013a2814c7512e/distribution',
386
]);
387
388
+export const isRepoWiki = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('wiki'));
389
+collect.set('isRepoWiki', [
390
+ 'https://github.com/lukesampson/scoop/wiki',
391
+]);
392
+
393
export const isSingleCommit = (url: URL | HTMLAnchorElement | Location = location): boolean => /^commit\/[\da-f]{5,40}/.test(getRepo(url)?.path!);
394
collect.set('isSingleCommit', [
395
'https://github.com/sindresorhus/refined-github/commit/5b614b9035f2035b839f48b4db7bd5c3298d526f',
0 commit comments