-
Notifications
You must be signed in to change notification settings - Fork 40
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
issues with changelog modifcation behavior #76
Comments
Are you using the latest version of everything? At least do |
$ npm ls
[email protected] /home/amusse/repos/nodejs-itoolkit
├── @release-it/[email protected]
...
├── [email protected]
Looks like I'm up to date on @release-it/[email protected]. There is a new version of release-it I can install though 16.2.1. |
After updating the .release-it.json with "preset": {
"name": "conventionalcommits"
}, The changelog is now: diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2587999..a09b39f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+
+
+## [1.0.2](https://github.com/IBM/nodejs-itoolkit/compare/
v1.0.1...v1.0.2) (2023-10-11)
+
# Changelog
## [1.0.1](https://github.com/IBM/nodejs-itoolkit/compare/
v1.0.0...v1.0.1) (2022-10-31)
@@ -225,4 +229,4 @@
### [0.1.5](https://github.com/IBM/nodejs-itoolkit/compare
/0.1.4...0.1.5) (2019-01-08)
-### 0.1.4 (2018-09-17)
+### 0.1.4 (2018-09-17)
\ No newline at end of file It appears that it still has the same issues as the original error. I will try updating release-it to the latest version to see if that helps. UPDATEupdating release-it to the latest version doesn't resolve the issue |
I was able to resolve
By adding: "header": "# Changelog" to .release-it.json. The default for header is just Next
I also noticed that for the angular preset
Are not considered changes to be included in the changelog.
Therefore would need to be manually added as a type if we want to add it to the changelog: "preset": {
"name": "angular",
"types": [
{
"type": "build",
"section": "Build System"
},
{
"type": "ci",
"section": "Build System"
}
]
}, So looks like the only issue remaining here is:
|
Any ideas why the newline is removed at the end of the file after the changelog is modified? |
FWIW, I had a similar problem with the changelog title getting repeated, even though I had the header value set. I was using I also wish it didn't strip the last newline in the file. |
Sorry for the delay @abmusse, somehow I missed it. Added the |
Awesome! Thanks for getting that resolved! |
I'm currently using release-it with conventional commits with following config:
https://github.com/IBM/nodejs-itoolkit/blob/cea61549fc197f9267af00befa06fa76df67c18c/.release-it.json#L1
I'm cutting a new release and noticed the change log is barren and missing a bunch of commits with:
See commits that should be included here:
IBM/nodejs-itoolkit@v1.0.1...master
I'm running the following release-it command:
https://github.com/IBM/nodejs-itoolkit/blob/cea61549fc197f9267af00befa06fa76df67c18c/package.json#L16
So far my CHANGELOG.md has been modified with:
There a few issues with the change log
# Changelog
header.I would expect the above to not be issues.
Any tips on getting these resolved?
The text was updated successfully, but these errors were encountered: