-
Notifications
You must be signed in to change notification settings - Fork 74
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
Adding ReleaseRules types list is working fine with release versioning but Changelog commits are empty. #234
Comments
So the commit analyzer has nothing to do with writing the changelog. It just tells semantic-release whether there should be a release or not.
I'll share part of my config show you hopefully you'll get the idea: [
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "New Feature(s) 🚀"
},
{
"type": "fix",
"section": "Bug Fix(es) 🐛️"
},
{
"type": "docs",
"section": "Documentation Changes 📝"
},
{
"type": "refactor",
"section": "Code Refactoring 💅"
},
{
"type": "test",
"section": "Tests 📡️"
},
{
"type": "perf",
"section": "Performance Improvement(s) 🚄️"
},
{
"type": "build",
"section": "Build system 🛠️"
}
]
}
}
], Let me know if this helps 😄 |
@tmeijn this worked and helped understand what was going on with the empty changelog, but I notice that for the breaking changes it is using a section called ⚠ BREAKING CHANGES, I tried to change this by using the same config you provided but adding another config at the start (just added it for feat! to see if it works but not so far):
In other words I could not figure out how to change the section name for the breaking changes, appreciate any help/guidance/guesses |
Hey @arkadioz, sorry for the late response, but that section is hard coded in the |
I've added to @semantic-release/commit-analyzer plugin a list of types under releaseRules:
It seems to be fine, when I make a commit of one of the types displayed in the list I can clearly see that release version is being increasing according to my definition.
But then I am looking at CHANGELOG.md file and it seems that commits are not being written and it left blanked.
Any idea what can cause this issue? I tried to search for a solution for this scenario few days and I feel I don't have any way to solve it by my own.
Can you tell me what is wrong with my script?
The text was updated successfully, but these errors were encountered: