中文 | Русский | Español | Français | 日本語 | 한국어 | Português | Italiano | हिन्दी | العربية
Thank you for your interest in contributing to this project! Below are some guidelines to help maintain consistency and clarity across commits.
This project use Trunk to ...
-> Insert instructions about how to properly contribute to the code of the project and add a link to a detailed guide.
-> Insert some instructions about how to properly contribute to the documentation of the project and add a link to a detailed guide.
All commit messages should follow this format:
[type] "short description"
[type]
: The category of the changes you’re making. It should be written in lowercase and enclosed in brackets."short description"
: A single sentence that summerizes the changes (in english only). The sentence cannot contain more than 50 charaters (alphanumeric and single quotation marks only) and must start with a verb in the past tense. The sentence must start with a capital letter and end with a period.
We use several commit categories, and there is a priority system to ensure that only the most significant change is reflected in the commit message. If a commit involves multiple types of changes, choose the highest-priority category based on the list below.
[fix]
: For bug fixes, prevails regardless of the other changes that come with it.[feat]
: For adding new features or functionalities, as long as no bug fixes are involved.[perf]
: For performance improvements, provided no new features or bug fixes are included.[chore]
: For minor changes that don't affect the logic of the code, like updating dependencies, formatting, or improving code structure and readability.[test]
: For adding or updating tests, without impacting the core functionality of the software.[docs]
: For documentation changes, such as updates to theREADME.md
files, comments, or API documentation.
- If you fixed a bug and updated the tests, use fix as it takes priority e.g.
[fix] Changed x to make y compatible with 'z'.
. - If you added a feature and improved code formatting, use feat since it ranks higher than style changes e.g.
[feat] Added x to y and removed z.
.
- Atomic Commits: Each commit should represent a single logical change. If you’re working on multiple types of changes, it’s often better to make separate commits.
- Descriptive Messages: Ensure the short description provides enough information to understand the nature of the change at a glance.
By following these guidelines, we can maintain a clean and structured commit history.