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
Ignoring case in serde deserialization for config types
#219
Comments
You probably are referring to this: https://github.com/convco/convco/blob/main/src/conventional/config.rs#L131? I think the workaround would be to add in your config that Feat increments Minor and Fix increments Patch. I would have to check if there are other places to fix. |
Yes, I am indeed referring to that (https://github.com/convco/convco/blob/main/src/conventional/config.rs#L131). It feels like a heavyweight thing to do to just work around a case sensitivity issue. It also doesn't fully solve the issue, e.g. if there's a typo like "feAt" or "fiX" or any other variation, we'd need a case for that too. My suggested changes would be as follows: Change convco/src/conventional/config.rs Line 123 in e4e1c83
and change convco/src/conventional/commits.rs Line 79 in e4e1c83
What do you think? |
I think it is good that convco check does check the case as it makes the commit messages consistent. Do you only have issues with merge commits (commit with more than 1 parent)? There is an option to ignore merge commits. |
Is your feature request related to a problem? Please describe.
One of the frustrations I have whilst using Convco is that if any of my merge commits suffixes use title case like "Feat" or "Fix" instead of "feat" and "fix", my entire workflow stops. I'd like Convco to ignore the case of the
type
. This is currently done in thedeserialize_type
method in/src/conventional/config.rs
. Conventional commits does allow for "any casing to be used".Describe the solution you'd like
We convert the
r#type
to lower case and then match in thedeserialize_type
method.The text was updated successfully, but these errors were encountered: