software:git
Differences
This shows you the differences between two versions of the page.
| software:git [2026/08/08 17:43] – created - external edit 127.0.0.1 | software:git [2026/08/20 13:34] (current) – ron | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # Conventional | + | ====== Conventional Commits ====== |
| + | |||
| + | * based on [[https:// | ||
| + | |||
| + | ===== Structure ===== | ||
| + | |||
| + | < | ||
| + | < | ||
| + | |||
| + | [< | ||
| + | |||
| + | [< | ||
| + | </ | ||
| + | |||
| + | ===== Types ===== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * [[https:// | ||
| + | * based on the [[https:// | ||
| + | |||
| + | ===== Scope ===== | ||
| + | |||
| + | * A scope may be provided to a commit’s type, to provide additional contextual information and is contained within parenthesis, | ||
| + | |||
| + | ===== Footers ===== | ||
| + | |||
| + | * BREAKING CHANGE: a commit that has a footer '' | ||
| + | * footers other than BREAKING CHANGE: < | ||
| + | |||
| + | ===== Full Spec ===== | ||
| + | |||
| + | * Commits MUST be prefixed with a type, which consists of a noun, '' | ||
| + | * The type '' | ||
| + | * The type '' | ||
| + | * A scope MAY be provided after a type. | ||
| + | * A scope MUST consist of a noun describing a section of the codebase surrounded by parenthesis, | ||
| + | * A description MUST immediately follow the colon and space after the type/scope prefix. | ||
| + | * The description is a short summary of the code changes, e.g., '' | ||
| + | * A longer commit body MAY be provided after the short description, | ||
| + | * The body MUST begin one blank line after the description. | ||
| + | * A commit body is free-form and MAY consist of any number of newline separated paragraphs. | ||
| + | * One or more footers MAY be provided one blank line after the body. | ||
| + | * Each footer MUST consist of a word token, followed by either a :< | ||
| + | * A footer’s token MUST use '' | ||
| + | * An exception is made for BREAKING CHANGE, which MAY also be used as a token. | ||
| + | * A footer’s value MAY contain spaces and newlines, and parsing MUST terminate when the next valid footer token/ | ||
| + | * Breaking changes MUST be indicated in the type/scope prefix of a commit, or as an entry in the footer. | ||
| + | * If included as a footer, a breaking change MUST consist of the uppercase text BREAKING CHANGE, followed by a colon, space, and description, | ||
| + | * If included in the type/scope prefix, breaking changes MUST be indicated by a ! immediately before the :. | ||
| + | * If '' | ||
| + | * Types other than feat and fix MAY be used in your commit messages, e.g., docs: update ref docs. | ||
| + | * The units of information that make up Conventional | ||
| + | * '' | ||
software/git.txt · Last modified: by ron
