-
Notifications
You must be signed in to change notification settings - Fork 1
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
Include semver impact in changelog entries and derive next version from that #202
Comments
That sounds like a perfect fit for cargo-changelog, yes! Right now, cargo-changelog can record arbitrary (well, not that arbitrary, but still) data in the changelog entry header. A boolean is certainly supported already. I would love to see contribution for this, yes please! |
Hmm, I was envisioning a more first-class support for this rather than querying and doing the processing outside the tool again. I see the appeal in a very flexible tool but I am worried that it will be harder to adopt and understand if there are a lot of moving parts. |
Yes, me too! This is only the first step towards, I think! 😉 |
204: Subcommand show r=matthiasbeyer a=matthiasbeyer Partly solves #202 `@thomaseizinger` Please have a look at this PR. It might help you solving your problem from #202. This PR introduces a "show" subcommand, which can be used to print information about the existing changelog entries. It currently features only a "text" backend, but it is prepared to implement also a "json" backend, which then could be used to process the structured data from a changelog. Co-authored-by: Matthias Beyer <[email protected]>
204: Subcommand show r=matthiasbeyer a=matthiasbeyer Partly solves #202 `@thomaseizinger` Please have a look at this PR. It might help you solving your problem from #202. This PR introduces a "show" subcommand, which can be used to print information about the existing changelog entries. It currently features only a "text" backend, but it is prepared to implement also a "json" backend, which then could be used to process the structured data from a changelog. Co-authored-by: Matthias Beyer <[email protected]>
FWIW, I prototyped something the other day: https://github.com/thomaseizinger/semverlog I'll try it out in our workspace. Happy to converge the two tools if you want :) |
Hi! This looks neat! I would love to converge the tools, yes! |
I am trying to define an automation-friendly versioning and changelog management strategy for
rust-libp2p
(see libp2p/rust-libp2p#2902). It is a workspace with 33 crates which makes things rather involved.One of the core problems is that we want to capture the semver impact of a change at PR creation time. Currently, we do this by bumping the version in the PR which is annoying for the author and prone to merge conflicts if two PRs make breaking changes at the same time.
I came up with an idea very similar to what you have been building here with one addition: I was going to track the semver impact of a change as metadata in the entry as well. Something like:
Then, at release time, you go through all unreleased changes and based on the current crate version +
breaking
, infer what the next version is:0.5.0
? Next version is0.5.1
type: Feat
and current version is1.5.3
? Next version is1.6.0
.What do you think of this idea? Would you be interesting in evolving your tool into that direction?
The text was updated successfully, but these errors were encountered: