Skip to content

Commit 329d756

Browse files
authored
Add isRepoMainSettings (#2)
1 parent 875cf8a commit 329d756

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ collect.set('isRepoSettings', [
302302
'https://github.com/sindresorhus/refined-github/settings/branches',
303303
]);
304304

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+
305310
export const isRepoTree = (url: URL | Location = location): boolean => isRepoRoot(url) || String(getRepoPath(url)).startsWith('tree/');
306311
collect.set('isRepoTree', [
307312
...collect.get('isRepoRoot') as string[],

0 commit comments

Comments
 (0)