Added cacheSize in ReserveCache API request

This commit is contained in:
Deepak Dahiya
2022-03-29 22:17:04 +00:00
committed by GitHub
parent b463992869
commit 76ac2fcd59
4 changed files with 40 additions and 24 deletions
+7
View File
@@ -123,3 +123,10 @@ export function assertDefined<T>(name: string, value?: T): T {
return value
}
export function isGhes(): boolean {
const ghUrl = new URL(
process.env["GITHUB_SERVER_URL"] || "https://github.com"
);
return ghUrl.hostname.toUpperCase() !== "GITHUB.COM";
}