- better handle homeUrl for enterprise instances with different urls (used by replace pattern for comparison string)
This commit is contained in:
@@ -177,6 +177,10 @@ export class GithubRepository extends BaseRepository {
|
||||
return 'https://api.github.com'
|
||||
}
|
||||
|
||||
get homeUrl(): string {
|
||||
return this.url?.replace('api.', '') || 'https://github.com'
|
||||
}
|
||||
|
||||
private octokit: Octokit
|
||||
|
||||
constructor(token: string, url: string | undefined, repositoryPath: string) {
|
||||
@@ -297,7 +301,4 @@ export class GithubRepository extends BaseRepository {
|
||||
}
|
||||
return false
|
||||
}
|
||||
get homeUrl(): string {
|
||||
return 'https://github.com'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user