diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94a6121..c9111bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,9 +25,11 @@ The `footer` is optional. The [Commit Message Footer](#commit-footer) format des #### Commit Message Header ``` -(): - │ │ │ - │ │ └─⫸ Summary in present tense. Not capitalized. No period at the end. +()(!?): + │ │ │ │ + │ │ │ └─⫸ Summary in present tense. Not capitalized. No period at the end. + │ │ │ + │ │ └─⫸ Exclamation mark: breaking change │ │ │ └─⫸ Commit Scope: layouts|components|components-widgets|components-atoms|pages │ pages-blog|pages-docs|scripts|assets @@ -35,7 +37,8 @@ The `footer` is optional. The [Commit Message Footer](#commit-footer) format des └─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test ``` -The `` and `` fields are mandatory, the `()` field is optional. +The `` and `` fields are mandatory, the `()` field is optional. +Exclamation mark is optional too, but it's used to mark breaking changes. ##### Type @@ -87,33 +90,23 @@ You can include a comparison of the previous behavior with the new behavior in o #### Commit Message Footer -The footer can contain information about breaking changes and deprecations and is also the place to reference GitHub issues, Jira tickets, and other PRs that this commit closes or is related to. -For example: +The footer is optional and is used for two purposes: + +- To reference issues that this commit closes +- To include information that doesn't fit in the header or body, such as a link to a file or a suggestion to review a pull request + +The format for the footer is as follows: ``` -BREAKING CHANGE: - - - - -Fixes # +Closes/Fixes # ``` or ``` -DEPRECATED: - - - - -Closes # +See pull request # ``` -Breaking Change section should start with the phrase "BREAKING CHANGE: " followed by a summary of the breaking change, a blank line, and a detailed description of the breaking change that also includes migration instructions. - -Similarly, a Deprecation section should start with "DEPRECATED: " followed by a short description of what is deprecated, a blank line, and a detailed description of the deprecation that also mentions the recommended update path. - ### Revert commits If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit.