-
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
Warnings when generating CHANGELOG.md
#195
Comments
Update:After reading the code, it sems that both issues come from conventional-changelog. Currently commit-and-tag-version/package.json Lines 40 to 45 in 47ab7de
|
That's right! The linked issue is the right place to report this. I'll leave this issue open, pending their fix (since it will mean we'll need to bump the version here). On the fixed half of this issue - I'm definitely keen to get in the newer versions of the conventional-changelog libs - I haven't yet because it'll require a close read of the breaking changes. I'm happy to merge it in and release a breaking bump here, but I want to make sure our changelog is right. I'm not sure how much work it'll be - it's possible that the very latest will mean we'll need a conversion to ESM (which is worth doing anyway). |
If anyone has the capacity to look at migrating to the later versions, I'd very happily accept PRs. Otherwise I'll get to it when I can. |
I might be able to do it in the next few days/weeks. I also notice that there are other dependencies that need some love, too (e.g. ESLint). My only question would be regarding contribution guidelines (I didn't see any CONTRIBUTING.md). For instance:
|
Huh, I thought we had one, but it seems not. I agree with both of those. Generally it's also:
|
I tried to upgrade it, but the ESM migration is required on latest versions of I also tried to upgrade them to latest version compatible with CommonJS. However, I found some issues with presets while running tests. I wasn't able to find a fix, so I took the opportunity to work on the following:
These should:
|
UPDATEPreset issues are due to conventional-changelog/conventional-changelog#1308 So the only way to upgrade |
Describe the bug
2 warnings:
commit-and-tag-version
on Windows (and having default git configuration), file is generated with LF instead of CRLF.markdownlint
, generatedCHANGELOG.md
has an extra (unnecessary) break line. One line before each commit type header is enough. No need to put 2.Current behavior
Expected behavior
No warnings
Environment
commit-and-tag-version
version(s): v12.5.0Possible Solution
Read git configuration (
git config --get core.autocrlf
) and generate the file accordinglyos.EOL
from os module (https://stackoverflow.com/a/16829025/767160)Remove the extra line from generated file
Additional context
The text was updated successfully, but these errors were encountered: