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
is there a recommended 'hello world' example for customizing the changelog? #957
Comments
This is the default command:
So what you could do either directly in the {
"gitlab": {
"release": true,
"releaseNotes": "git log --no-merges --pretty=format:\"* %s (%h)\" ${from}...${to}",
}
} Does that help? |
Thank you so much, I really appreciate this! |
I will try the suggestion soonish in the next week or two and report back. |
I tried simply pasting the suggested line into the package.json and the release pipeline failed with this error "isPreRelease":false,"preReleaseId":null,"tagName":"0.17.0"}
ERROR ReferenceError: from is not defined |
Sorry about that. What you see below that error message is the data available in the command. Here's a better example: {
"gitlab": {
"release": true,
"releaseNotes": "git log --no-merges --pretty=format:\"* %s (%h)\" ${latestTag}...${tagName}",
}
} |
ERROR fatal: ambiguous argument '7.37.0...7.38.0': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Rolling back changes... |
I believe this is what is needed, git log --no-merges --pretty=format:"* %s (%h)" 7.37.0...main |
@webpro this is working :) {
"release-it": {
"gitlab": {
"release": true,
"releaseNotes": "git log --no-merges --pretty=format:\"* %s %h\" ${latestTag}...main"
}
}
} |
Thank you, much appreciated! All the trial & error at least just made it to the docs for others to enjoy :) |
Hello,
Is there a small 'hello world' style example one might use to try customizing the changelog, so that the duplicates are removed?
This is one of my favorite packages and I use it in tens of projects.
A nit is the changelog nearly repeats each item in the gitlab list. Here is an example from part of a release-it changelog generated for gitlab, where the flow is: create an issue, create an MR from the issue, complete the MR and merge into the default/main branch,
I see from the documentation that it is possible to customize the output this way,
Any example or recommendations you might give are appreciated, thank you :)
The text was updated successfully, but these errors were encountered: