Skip to content

docs: clarify lowercase requirement in conventional commits#22445

Open
tmihoc wants to merge 3 commits into
juju:3.6from
tmihoc:3.6-clarify-conventional-commits-lowercase
Open

docs: clarify lowercase requirement in conventional commits#22445
tmihoc wants to merge 3 commits into
juju:3.6from
tmihoc:3.6-clarify-conventional-commits-lowercase

Conversation

@tmihoc
Copy link
Copy Markdown
Member

@tmihoc tmihoc commented May 19, 2026

When I point AI agents to our contributing guide, they find the rule about conventional commits but still make mistakes because it is not phrased correctly. This PR updates the phrasing to clarify that commit descriptions must start with lowercase, otherwise the PR fails in the CI.

Forward merge

This PR should be forward merged into 4.0 and main.

Emphasize that commit descriptions must be lowercase (enforced by CI).
Added common mistakes section with examples showing what fails vs passes.

This prevents PRs from failing the commitlint check with subject-case
errors.
@tmihoc tmihoc force-pushed the 3.6-clarify-conventional-commits-lowercase branch from 3059d67 to b5cb02a Compare May 20, 2026 10:47
The 'Must use lowercase' requirement with the explicit CI failure warning is sufficient. The Common Mistakes section provided examples but did not add value beyond the clear rule statement.
@tmihoc tmihoc force-pushed the 3.6-clarify-conventional-commits-lowercase branch from b5cb02a to ad1dcc5 Compare May 20, 2026 10:48
@jack-w-shaw
Copy link
Copy Markdown
Member

The thing we enforce is that the first character (after the tag) is lower case, not the whole message itself.

I think you should maybe keep 'Should be lowercase' and add 'First character MUST be..."

@tmihoc
Copy link
Copy Markdown
Member Author

tmihoc commented May 21, 2026

I think you should maybe keep 'Should be lowercase' and add 'First character MUST be..."

I agree about the must bit but not sure about the should bit: Are you saying we should in general avoid caps, as in, docs: remove Windows installation instructions should really be docs: remove windows installation instructions?

Copy link
Copy Markdown
Member

@jack-w-shaw jack-w-shaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs: remove Windows installation instructions would pass CI.

e.g. from https://www.conventionalcommits.org/en/v1.0.0/#specification:
Image

So enforcing the entire description is lowercase is too strong.

However, this is a small detail. I will approve and let you decide how to handle this detail

Comment thread docs/contributor/reference/conventional-commits.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants