Skip to content

conventional-commits - Cleanup - #7813

Merged
fregante merged 10 commits into
mainfrom
conventional-rgh-commit
Sep 21, 2024
Merged

fregante merged 10 commits into
mainfrom
conventional-rgh-commit

Conversation

@fregante

@fregante fregante commented Sep 21, 2024 •

Copy link
Copy Markdown
Member

Addresses

  • support titles that contain HTML
  • parseConventionalCommit now rejects invalid types
  • use CSS attributes for type matching
  • avoid hardcoded padding values
  • only show the type in the bubble
  • add test URLs
  • add support for majors via exclamation mark (feat!: major)

Test URLs

Demo

outdated
light dark

@fregante fregante left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread source/helpers/conventional-commits.ts Resolved
@fregante
fregante marked this pull request as ready for review September 21, 2024 12:27
@fregante fregante changed the title conventional-commits cleanup conventional-commits - Cleanup Sep 21, 2024
@fregante

Copy link
Copy Markdown
Member Author

Screenshot updated

Screenshot 4

@oSumAtrIX

Copy link
Copy Markdown
Contributor

One more idea that came up is to add a second label for the scope in a lighter tint (or just grey)

@fregante

fregante commented Sep 21, 2024 •

Copy link
Copy Markdown
Member Author

I reviewed the spec at https://www.conventionalcommits.org/en/v1.0.0/ and found that:

  • scope should be "a noun", so technically multiple words shouldn't even be recognized as valid
  • this also means feat(`backticks`): foo isn't valid either, and it's fine if we don't support it
  • the prefix can also include ! to mark major changes

This to show there were arguments about out-of-spec stuff while also ignoring the actual spec.

The feature is finally ready to be shipped

@fregante fregante changed the title conventional-commits - Cleanup conventional-commits - Cleanup Sep 21, 2024
@fregante
fregante merged commit 82c585c into main Sep 21, 2024
@fregante
fregante deleted the conventional-rgh-commit branch September 21, 2024 17:43
@fregante

Copy link
Copy Markdown
Member Author

@oSumAtrIX By the way I opened a feedback issue for this feature. Let's refrain from commenting there

@refined-github refined-github locked as resolved and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

2 participants