Understand the Conventional Commits structure
masterConventional Commits follow a specific structure to create a clear commit history and enable automation (like SemVer and CHANGELOG generation). A commit message must follow this pattern:
<type>[optional scope]: <description>
[optional body]
[optional footer]Key components:
- type: A noun describing the change (e.g.,
feat,fix). - scope (optional): A noun in parentheses describing the affected part of the codebase (e.g.,
feat(parser):). - description: A short summary of the change, following a colon and a space.
- body (optional): Detailed information about the change, separated from the description by a blank line.
- footer (optional): Metadata like issue references or breaking change notes, separated from the body by a blank line.