mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-10 11:16:36 +08:00
Agent-Logs-Url: https://github.com/irihitech/Semi.Avalonia/sessions/b699d4e5-4563-449e-b2ba-2c85fce56ca2 Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
2.5 KiB
2.5 KiB
Git Commit Message Convention
This project follows the Conventional Commits specification for commit messages.
Format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Types
| Type | Description |
|---|---|
feat |
A new feature |
fix |
A bug fix |
docs |
Documentation only changes |
style |
Changes that do not affect the meaning of the code (formatting, missing semicolons, etc.) |
refactor |
A code change that neither fixes a bug nor adds a feature |
perf |
A code change that improves performance |
test |
Adding missing tests or correcting existing tests |
build |
Changes that affect the build system or external dependencies |
ci |
Changes to CI configuration files and scripts |
chore |
Other changes that don't modify source or test files |
revert |
Reverts a previous commit |
Rules
- Limit the subject line to 72 characters
- Use the imperative mood in the subject line (e.g., "add feature" not "added feature")
- Do not end the subject line with a period
- Capitalize the first letter of the description
- Separate subject from body with a blank line
- Wrap the body at 72 characters
- Use the body to explain what and why, not how
- Reference issues and pull requests in the footer
Scope
The scope should be the name of the package or area affected (e.g., button, datepicker, theme, demo).
Examples
Simple commit
feat(button): add loading state support
Commit with body
fix(datepicker): correct month navigation overflow
When navigating past December, the month index wrapped to a
negative value instead of rolling over to January of the next year.
Commit with breaking change
feat(theme)!: rename SemiColorPrimary to SemiColorBrand
BREAKING CHANGE: The token SemiColorPrimary has been renamed to
SemiColorBrand. Update all references in your custom theme files.
Commit referencing an issue
fix(textbox): placeholder not visible in dark mode
Closes #123
Breaking Changes
Breaking changes must be indicated by appending a ! after the type/scope, or by including a BREAKING CHANGE: footer. Both methods may be used together.
Revert Commits
When reverting a previous commit, use the revert type and reference the reverted commit SHA in the footer:
revert: feat(button): add loading state support
Revert commit a1b2c3d.