Skip to content
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

multiple fixes commited only first one in changelog.md #3053

Open
ivg-design opened this issue Nov 10, 2023 · 3 comments
Open

multiple fixes commited only first one in changelog.md #3053

ivg-design opened this issue Nov 10, 2023 · 3 comments

Comments

@ivg-design
Copy link

Current behavior

Hi friends, I am relatively new to this plugin and github in general, but I was able to configure my project to use semantic-versioning and automatically release new versions and update the changelog.

I use vsCode

and when I commit I leave a message for example like so:

fix: multiline \n
fix: comments \n
fix: in changelog

however, I will only see the first line in the changelog... is there a way to see all of the fixes? I must be missing something rather obvious....

Please help!

Expected behavior

that I'd have all fix:'s shown in my changelog

semantic-release version

22.0.7

CI environment

skipCI

Plugins used

  '@semantic-release/commit-analyzer',
    '@semantic-release/release-notes-generator',
    '@semantic-release/changelog',

semantic-release configuration

module.exports = {
branches: [
{
type: 'prerelease',
name: 'main',
prerelease: 'alpha',
}, // Add the prerelease property here
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
//'@semantic-release/npm', // If you're publishing to npm
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
'@semantic-release/github',
],
};

CI logs

n/a

@ivg-design ivg-design changed the title multiple fixes commited only first one changelog multiple fixes commited only first one in changelog.md Nov 10, 2023
@ivg-design
Copy link
Author

@travi thank you for that, but I am not sure I follow how this affects my situation - I would be ever so grateful if you could clarify what can I do to fix my issue. I am very new to github and not sure if I follow every nuance of that article...

@travi
Copy link
Member

travi commented Nov 10, 2023

i'm sorry, i misread your initial message and misunderstood that you had multiple messages in a single commit rather than multiple commits. expecting the messages to be retained after squashing multiple commits into one when merging is a common misconception, so we have the faq that i linked to for that situation.

however, your situation is essentially the same, but you've squashed the multiple changes into a single commit manually yourself. instead, make atomic commits so that each commit contains only one change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants