Resolved comments

This commit is contained in:
Apple committed 2022-04-01 01:41:12 +05:30
1 parent bef181dc3f
commit c24bdf1c4c
5 files changed
+27 -19

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