Skip to content

Commit 2a26f92

Browse files
jeronefregante
authored andcommitted
Add link to forked repo below the source (#2153)
Co-authored-by: Federico Brigante <github@bfred.it>
1 parent e3e046b commit 2a26f92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ export const isRepoSettings = (): boolean => /^settings/.test(getRepoPath()!);
9393

9494
export const isRepoTree = (): boolean => isRepoRoot() || /^tree\//.test(getRepoPath()!);
9595

96+
export const isRepoWithAccess = (): boolean => isRepo() && select.exists('.reponav-item[href$="/settings"]');
97+
9698
export const isSingleCommit = (): boolean => /^commit\/[0-9a-f]{5,40}/.test(getRepoPath()!);
9799

98100
export const isSingleFile = (): boolean => /^blob\//.test(getRepoPath()!);

0 commit comments

Comments
 (0)