implement feedback
This commit is contained in:
1 parent
af46fdce8c
commit
3f53e15631
5 files changed
+123
-13
No files matched your search
@@ -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'
|
||||
}
|
||||
Reference in new issue
Block a user