-
Notifications
You must be signed in to change notification settings - Fork 115
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
When enable consolidate-commits, commit message's placeholder not been replaced #222
Comments
Hmm, doesn't look like it is documented but atm the only variable we support for consolidated commits is "date". The problem is knowing which crate's version, name, next_version, etc should be used for the consolidated commit. Each crate could be different. Any crate could be excluded. I have been interesting in adding support for bumping the version to an absolute version rather than a relative version. That would make it consistent across all crates and could then be included. |
I ran into this issue after setting everything up, is there a workaround I could use? Maybe I'm considering manually hardcoding the next version in |
i have the same as @kpcyrd ... i publish all my crates as one consolidated version so ideally there would be options that would allow to consolidate commit message and tags - tags kinda works but we get tags per crate which creates a lot of tags but also is cool if you want to view changes per crate. I guess perhaps a flag to treat releases at workspace level that would fail (proper error msg) if user tried this on workspace with member that had different versions? currently i do |
had a look at your code and this seems to work for me (only version) #246 adds version into commit message template only if all crates have the same version |
Besides separating concerns, this is a step towards a potential solution to crate-ci#222, see discussion in crate-ci#246. Now we are preserving whether the user used an absolute or relative version.
Been giving this thought and want to solicit input on options and their trade offs to see what would work for people A solution can involve more than one of these and could even have some "quick wins" now and be expanded in the future When sharing your preference, please also share your use case so we understand why your crates can have a shared version and if there are any particularities with your workflow for us to understand to help with this. OptionsInclude on same-versionThis is the route taken with #246
Include on absolute bump levelsThis is for when the user explicitly states the version is the same for all, and not just when it happens by chance.
Config flag to error on version mismatchWhen a set of crates are releasing, if they aren't in lock step, error with a remediation. We can suggest the max version as the absolute version to pass in We only do this per-crate that sets the flag Config flag to bump to snap to high water markWhen doing a relative version bump, we bump all crates, perform a We only do this per-crate that sets the flag Use the root crates versionIf the root crate isn't released, what do we use? RecommendationStart with "Config flag to error on version mismatch". If we name the flag generically, we can later add "Config flag to bump to snap to high water mark" Flag name ideas
I lean towards EDIT: Looks like |
This is a step towards crate-ci#222
release.toml
I try to add pre-release-commit-message template config or use the default message template.
commit message:
The text was updated successfully, but these errors were encountered: