Commit Messages Style Guide
A commit message is a brief description of the changes made in a commit. It is a way to communicate the purpose of the change to other developers. A good commit message helps to understand the changes made in the commit and why they were made.
All Nethesis projects follow the Conventional Commits standard for commit messages.
Conventional Commits standard
Conventional Commits is a specification for writing standardized commit messages. It provides a set of rules for creating an explicit commit history, which makes it easier to write automated tools on top of. By following this convention, you can make your commit history more readable and easier to understand.
Individual commits should contain a cohesive set of changes to the code. These seven rules summarize how a good commit message should be composed.
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
For merge commits, and commits pushed directly to the main branch (avoid whenever possible!), also add the issue reference inside the commit body.
AI generated commit messages
When AI tools write or assist with code, proper attribution
helps track the evolving role of AI in the development process.
Contributions should include a Assisted-by tag in the following format:
Assisted-by: AGENT_NAME:MODEL_VERSION
Where:
AGENT_NAMEis the name of the AI tool or frameworkMODEL_VERSIONis the specific model version used
Example:
Assisted-by: Copilot:claude-haiku-4.5