Implementation of python's caching (#266)

This commit is contained in:
Dmitry Shibanov authored and GitHub committed 2021-11-17 13:31:22 +03:00
1 parent 52636cf49a
commit 280924fbef
75 files changed
+126753 -7699

No files matched your search

+7
View File
@@ -92,3 +92,10 @@ export function validatePythonVersionFormatForPyPy(version: string) {
const re = /^\d+\.\d+$/;
return re.test(version);
}
export function isGhes(): boolean {
const ghUrl = new URL(
process.env['GITHUB_SERVER_URL'] || 'https://github.com'
);
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
}