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.
1 parent e3e046b commit 2a26f92Copy full SHA for 2a26f92
source/index.ts
@@ -93,6 +93,8 @@ export const isRepoSettings = (): boolean => /^settings/.test(getRepoPath()!);
93
94
export const isRepoTree = (): boolean => isRepoRoot() || /^tree\//.test(getRepoPath()!);
95
96
+export const isRepoWithAccess = (): boolean => isRepo() && select.exists('.reponav-item[href$="/settings"]');
97
+
98
export const isSingleCommit = (): boolean => /^commit\/[0-9a-f]{5,40}/.test(getRepoPath()!);
99
100
export const isSingleFile = (): boolean => /^blob\//.test(getRepoPath()!);
0 commit comments