Skip to content

conventional-commits - Support capitalized types - #9777

Merged
fregante merged 1 commit into
refined-github:mainfrom
thribhuvan003:fix/conventional-commits-capitalized-colors
Jul 7, 2026
Merged

fregante merged 1 commit into
refined-github:mainfrom
thribhuvan003:fix/conventional-commits-capitalized-colors

Conversation

@thribhuvan003

Copy link
Copy Markdown
Contributor

Closes #9765

When upper-case types were added to the parser, rawType kept its original casing, but the CSS presets only match lowercase attribute values ([rgh-conventional-commits='fix']), so Fix:/Feature:/Refactor: commits fell through to the default white/gray label.

rawType's only consumer is this attribute, so this lowercases it at the attribute site — the CSS contract is lowercase, and the visible label text (commit.type) is unaffected. Also added the reporter's URL to the Test URLs list.

Tested on:

@github-actions github-actions Bot changed the title Fix conventional-commits label colors for capitalized types AI SPAM Jul 4, 2026
@github-actions github-actions Bot closed this Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

This looks like an AI-generated PR, so we're preemptively closing it. If you're human and tested it, include a screenshot/video/gif of the working PR and we can reopen the PR. Don't open more PRs until this one is resolved.

@github-actions github-actions Bot added the bug label Jul 4, 2026
@thribhuvan003

Copy link
Copy Markdown
Contributor Author

Tested locally — built the branch and loaded it on the page from #9765. Capitalized types (Fix, Refactor, Docs, Feature) get their label colors now instead of showing white/gray. Screenshot attached.
image

@fregante fregante reopened this Jul 5, 2026
@fregante fregante changed the title AI SPAM Fix conventional-commits label colors for capitalized types Jul 5, 2026
@github-actions github-actions Bot changed the title Fix conventional-commits label colors for capitalized types Fix conventional-commits label colors for capitalized types Jul 5, 2026
@fregante fregante changed the title Fix conventional-commits label colors for capitalized types conventional-commits - Support capitalized labels Jul 7, 2026
@fregante fregante changed the title conventional-commits - Support capitalized labels conventional-commits - Support capitalized types Jul 7, 2026
@fregante
fregante merged commit fe11afc into refined-github:main Jul 7, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

conventional-commits: When the first letter of the type is capitalized, the background color is always white/gray

2 participants