File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -44,17 +44,11 @@ export async function isRepoRoot() {
44
44
* check if the repository is public
45
45
*/
46
46
export async function isPublicRepo ( ) {
47
- const platform = getPlatform ( ) ;
48
- if ( platform === 'github' ) {
49
- const selector = 'meta[name="octolytics-dimension-repository_public"]' ;
50
- await elementReady ( selector ) ;
51
- // <meta name="octolytics-dimension-repository_public" content="true/false">
52
- const isPublic = $ ( selector ) . attr ( 'content' ) === 'true' ;
53
- return pageDetect . isRepo ( ) && isPublic ;
54
- } else {
55
- // TODO
56
- return true ;
57
- }
47
+ const selector = 'meta[name="octolytics-dimension-repository_public"]' ;
48
+ await elementReady ( selector ) ;
49
+ // <meta name="octolytics-dimension-repository_public" content="true/false">
50
+ const isPublic = $ ( selector ) . attr ( 'content' ) === 'true' ;
51
+ return pageDetect . isRepo ( ) && isPublic ;
58
52
}
59
53
export async function isPublicRepoWithMeta ( ) {
60
54
const platform = getPlatform ( ) ;
You can’t perform that action at this time.
0 commit comments