-
Notifications
You must be signed in to change notification settings - Fork 292
fix: changelog-host parameter ignored when using manifest configuration
#1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When release-please-config.json is used, the changelog-host input parameter was being ignored and not passed to Manifest.fromManifest(). This caused changelog links to default to https://github.com instead of the specified custom host (e.g., GitHub Enterprise instances). - Add changelogHost to manifestOverrides when it differs from default - Restructure manifestOverrides logic to handle all overrides consistently - Add test case to verify changelog-host is properly passed to manifest Fixes issue where GitHub Enterprise users couldn't customize changelog links when using manifest configuration files.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
ferrarimarco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, a couple of things to check.
ferrarimarco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
🤖 I have created a release *beep* *boop* --- ## [4.4.0](v4.3.0...v4.4.0) (2025-10-09) ### Features * add ability to select versioning-strategy and release-as ([#1121](#1121)) ([ee0f5ba](ee0f5ba)) ### Bug Fixes * `changelog-host` parameter ignored when using manifest configuration ([#1151](#1151)) ([535c413](535c413)) * bump mocha from 11.7.1 to 11.7.2 in the npm_and_yarn group across 1 directory ([#1149](#1149)) ([3612a99](3612a99)) * bump release-please from 17.1.2 to 17.1.3 ([#1158](#1158)) ([66fbfe9](66fbfe9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [4.4.0](googleapis/release-please-action@v4.3.0...v4.4.0) (2025-10-09) ### Features * add ability to select versioning-strategy and release-as ([#1121](googleapis/release-please-action#1121)) ([ee0f5ba](googleapis/release-please-action@ee0f5ba)) ### Bug Fixes * `changelog-host` parameter ignored when using manifest configuration ([#1151](googleapis/release-please-action#1151)) ([535c413](googleapis/release-please-action@535c413)) * bump mocha from 11.7.1 to 11.7.2 in the npm_and_yarn group across 1 directory ([#1149](googleapis/release-please-action#1149)) ([3612a99](googleapis/release-please-action@3612a99)) * bump release-please from 17.1.2 to 17.1.3 ([#1158](googleapis/release-please-action#1158)) ([66fbfe9](googleapis/release-please-action@66fbfe9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Problem
The
changelog-hostaction parameter was being ignored when using manifest configuration files (release-please-config.json). This caused changelog links to always point togithub.cominstead of the specified GitHub Enterprise Server URL, breaking changelog functionality for GitHub Enterprise users.Root Cause
The original implementation attempted to pass
changelogHostthroughmanifestOverridesto theManifest.fromManifest()method. However,changelogHostis not part of theManifestOptionsinterface - it belongs to the per-pathReleaserConfiginterface. This architectural mismatch meant the parameter was silently ignored.Solution
Modified the
loadOrBuildManifest()function to:changelogHostthrough manifest optionschangelogHostfor all configured paths when the action input is provided and differs from the default GitHub URLTechnical Details
manifestOverrides.changelogHost(invalid approach)manifest.repositoryConfig[path].changelogHostfor each path after manifest loadingchangelog-hostinput is provided and differs fromhttps://github.comTesting
Impact
This fix enables GitHub Enterprise Server users to properly use the
changelog-hostparameter with manifest configurations, ensuring changelog links point to their custom Git hosting instead