Renovate should not convert commit- and pr-titles to lowercase #20931
Replies: 4 comments 15 replies
-
I'm ok with this idea, but a couple of concerns:
|
Beta Was this translation helpful? Give feedback.
-
@kingcrunch Let's discuss requirements here again rather than in an active PR. We have a way of detecting semantic commits, but we don't differentiate between angular and "conventional". The angular spec says:
In other words, the full commit message should be lowercased. Apart from this, it is the only reference I see to terms like "capitalized", "upper" or "lower" cased except for What this says to me is that:
Let's say we remove all commit message lower casing, probably in a major release to flag it's a breaking change. In this case probably most people are happy or disinterested, but we also should have a way to allow angular convention users to do what they need (hello @devversion). I'm pretty sure we don't need to be "angular convention aware" if the only thing is lower casing. We do have a lowercase template helper already but not sure if that's flexible enough to do the whole commit message. I suspect it doesn't work as needed when the message itself is already a template. So then a quick solution would be a new option One more thing: we'd need to think about both of these:
|
Beta Was this translation helpful? Give feedback.
-
Could you maybe explain, why? To clarify: My suggestion only covers changes in To summarize:
Thats it. Now I dont't understand, why this is worse, than an yet-another-option, that leads to at the end 2 new "conventions" (normal, lowercase-normal, semantic/conventional, lowercase-semantic/"angular"). PS: Don't get me wrong. I just don't get it. If you prefer the extra option, fine. :) |
Beta Was this translation helpful? Give feedback.
-
Here's a quick possibility: New config option Also has second option In a future major release we can:
|
Beta Was this translation helpful? Give feedback.
-
Type of discussion.
I'm proposing an idea
Tell us more.
Does it makes sense to change the case of the title when semantic-commits-mode is enabled?
While reading the commits, issues, PRs, and so on I thought, that this is really specified somewhere, but now I've read the Conventional commits spec and found out, that it is not mentioned there.
Than I found, that only Angular defined this rule. Renovate is used by many projects, even outside the Node/JS/Typescript/... ecosystem, where such rules are unknown in general and at first confusing, because (as mentioned) conventional commits doesn't mention anything like that.
On the other hand, if one likes to have lowercase first character, it is just the
commitMessageAction
, which needs a change from "Update" to "update". At least, when there no other, deeper configuration changes I don't see yet :) And even if, I cannot imagine, that is is impossible to setup oneself.My suggestion:
commitMessageAction
toupdate
(maybe for semantic commits only, but actually I don't know, why to differ)What do you think?
Beta Was this translation helpful? Give feedback.
All reactions