-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Environment
Unrelated
Reproduction
Unrelated
Describe the bug
When generating changelog links ,the protocol is hardcoded to https even if the original repository configuration uses http. This causes links to be inaccessible in environments that only support http (e.g., an internal private repositories 'gitea' using http).
The root cause is in the baseUrl function in changelogen/src/repo.ts (line 42), which explicitly uses https:// regardless of the original protocol from the repository URL:
function baseUrl(config: RepoConfig) {
return `https://${config.domain}/${config.repo}`; // Line 42
}This function is used by formatReference (line 50) and formatCompareChanges (line 63) to generate all repository-related links, overriding any http protocol specified in the original repository configuration.
Additional context
This issue occurs regardless of how the repository is configured:
- Through the
repositoryfield inpackage.jsonwith anhttpURL - Via Git remote URL using
http - By manually setting the
repoproperty in the changelog configuration
The hardcoded https protocol makes the generated changelog links incompatible with internal systems or private repositories that require http for access.