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.
isRepoMainSettings
1 parent 875cf8a commit 329d756Copy full SHA for 329d756
index.ts
@@ -302,6 +302,11 @@ collect.set('isRepoSettings', [
302
'https://github.com/sindresorhus/refined-github/settings/branches',
303
]);
304
305
+export const isRepoMainSettings = (url: URL | Location = location): boolean => getRepoPath(url) === 'settings';
306
+collect.set('isRepoMainSettings', [
307
+ 'https://github.com/sindresorhus/refined-github/settings',
308
+]);
309
+
310
export const isRepoTree = (url: URL | Location = location): boolean => isRepoRoot(url) || String(getRepoPath(url)).startsWith('tree/');
311
collect.set('isRepoTree', [
312
...collect.get('isRepoRoot') as string[],
0 commit comments