implement feedback

This commit is contained in:
Bethany
2023-08-09 17:42:14 -07:00
parent 2f42c127c7
commit 188abfc20b
5 changed files with 123 additions and 13 deletions

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'
}