- better handle homeUrl for enterprise instances with different urls (used by replace pattern for comparison string)

This commit is contained in:
Mike Penz
2023-11-05 10:14:30 +00:00
committed by GitHub
parent 8afbd5a789
commit 2538eab26b
2 changed files with 8 additions and 7 deletions
+4 -4
View File
@@ -18,6 +18,10 @@ export class GiteaRepository extends BaseRepository {
return 'https://gitea.com'
}
get homeUrl(): string {
return 'https://gitea.com'
}
constructor(token: string, url: string | undefined, repositoryPath: string) {
super(token, url, repositoryPath)
this.url = url || this.defaultUrl
@@ -237,8 +241,4 @@ export class GiteaRepository extends BaseRepository {
core.info(`️ Found ${tagsInfo.length} (fetching max: ${maxTagsToFetch}) tags from the GitHub API for ${owner}/${repo}`)
return tagsInfo
}
get homeUrl(): string {
return 'https://gitea.com'
}
}