implement feedback

This commit is contained in:
Bethany committed 2023-08-09 17:42:14 -07:00
1 parent af46fdce8c
commit 3f53e15631
5 files changed
+123 -13

No files matched your search

+7
View File
@@ -13,3 +13,10 @@ export function getResultsServiceUrl(): string {
}
return resultsUrl
}
export function isGhes(): boolean {
const ghUrl = new URL(
process.env['GITHUB_SERVER_URL'] || 'https://github.com'
)
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM'
}