mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 14:38:03 +02:00
fix(#186): use a different name for the hostname configuration
This commit is contained in:
@@ -108,26 +108,26 @@ export function anonymizeContent(
|
||||
new RegExp(
|
||||
`https://github.com/${
|
||||
repository.source.githubRepository.fullName
|
||||
}/blob/${repository.source.branch?.name || "HEAD"}\\b`,
|
||||
}/blob/${repository.source.branch?.name || "main"}\\b`,
|
||||
"gi"
|
||||
),
|
||||
`https://${config.HOSTNAME}/r/${repository.repoId}`
|
||||
`https://${config.APP_HOSTNAME}/r/${repository.repoId}`
|
||||
);
|
||||
content = content.replace(
|
||||
new RegExp(
|
||||
`https://github.com/${
|
||||
repository.source.githubRepository.fullName
|
||||
}/tree/${(repository.source as GitHubBase).branch?.name || "HEAD"}\\b`,
|
||||
}/tree/${(repository.source as GitHubBase).branch?.name || "main"}\\b`,
|
||||
"gi"
|
||||
),
|
||||
`https://${config.HOSTNAME}/r/${repository.repoId}`
|
||||
`https://${config.APP_HOSTNAME}/r/${repository.repoId}`
|
||||
);
|
||||
content = content.replace(
|
||||
new RegExp(
|
||||
`https://github.com/${repository.source.githubRepository.fullName}`,
|
||||
"gi"
|
||||
),
|
||||
`https://${config.HOSTNAME}/r/${repository.repoId}`
|
||||
`https://${config.APP_HOSTNAME}/r/${repository.repoId}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user