Added cacheSize in ReserveCache API request

This commit is contained in:
Deepak Dahiya authored and GitHub committed 2022-03-29 22:17:04 +00:00
1 parent 646eb713fa
commit 8613989147
4 files changed
+40 -24

No files matched your search

+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";
}