-
Notifications
You must be signed in to change notification settings - Fork 350
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
node-workspaces plugin creates inconsistent changelog and release name #1530
Comments
Just experienced this one myself. It seems that packages that are updated because one of their dependency has changed, miss out the header of the change in the changelog. In the example above the header should be |
also related to #1581 |
I think the issue is in the const pullRequest: ReleasePullRequest = {
title: PullRequestTitle.ofTargetBranch(this.targetBranch),
body: new PullRequestBody([
{
component: updatedPackage.name,
version,
notes: appendDependenciesSectionToChangelog(
'', // <------- HERE
dependencyNotes,
this.logger
),
},
]),
updates: [
{
path: addPath(updatedPackage.location, 'package.json'),
createIfMissing: false,
updater: new RawContent(
jsonStringify(packageJson, updatedPackage.rawContent)
),
},
{
path: addPath(updatedPackage.location, 'CHANGELOG.md'),
createIfMissing: false,
updater: new Changelog({
version,
changelogEntry: appendDependenciesSectionToChangelog(
'', // <------- AND HERE
dependencyNotes,
this.logger
),
}),
},
],
labels: [],
headRefName: BranchName.ofTargetBranch(this.targetBranch).toString(),
version,
draft: false,
}; the function appendDependenciesSectionToChangelog(changelog, notes, logger = logger_1.logger) {
if (!changelog) { // <---- this is empty so it just adds the header on the line below
return `### Dependencies\n\n${notes}`;
} @chingor13, I tried to create the release notes for the dependencies on the fly by using the Happy to help but not completely sure where to look for a fix for this. Do we need to somehow compute the release notes for the packages that are just versioned bumped before hand? and then pass those release notes in the |
Any updates on this one? We are a bit stuck as we cannot use release please until this has been fixed or all our Changelogs will be messed up. |
@chingor13 any chance of this getting fixed? As mentioned above, I will be happy to contribute I just need a bit of guidance. |
I confirmed that this issue has been resolved in 16.6.0, see related comment in #2089, which I just closed as fixed. @sir-captainmorgan21 @vizio360 @chingor13: Once you verify the above, I think this issue can be closed as well. |
@chrispcampbell yes this seems to be fixed now, at least based on my tests |
Is this a client library issue or a product issue?
Library issue
Did someone already solve this?
I could not find anything
Do you have a support contract?
No
Issue
Hi. We are using the node-workspace plugin. When using it, however, the resulting changelog and release name is inconsistent with release-please's normal output. Below is a screen shot of the output. The form-field package was modified in this instance. It received the normal output with (has a version number heading, and is not prefixed with
@snagajob/
. The input package relies on the form-field package, so it was added by thenode-workespace
plugin. You can see the output is different. We'd like or release naming conventions and changelog output to remain consistent.Environment details
release-please
version: 13.18.5Steps to reproduce
node-workspaces
pluginfeat: blah blah
release-please -- release-pr
to create the release PRThanks!
The text was updated successfully, but these errors were encountered: