Skip to content

Latest commit

 

History

History
140 lines (103 loc) · 5.54 KB

commit-guideline.md

File metadata and controls

140 lines (103 loc) · 5.54 KB

Git Commit Message Guideline

This repo adheres to custom angular-emoji commit guideline.

Format

Each commit message consists of a header, a body and a footer. The header includes one or more emojis, a type, a scope and a subject.

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

The header is mandatory but the body and footer are optionals. The header's scope is optional but the emoji(s), commit type and subject are required. The header must not be longer than 50 characters. Any line of the body or footer must not be longer than 72 characters.

Types and Emoji

Type must be one of the following with one of the designated emojis:

Condition Emojis

This emojis can be added to the type emoji to notify about certain condition:

Scope

The scope should be the name of the npm package affected. The following is the list of supported scopes:

  • api
  • frontend
  • packaging: used for changes that change the npm package layout in all of our packages, e.g. public path changes, package.json changes done to all packages, d.ts file/format changes, changes to bundles, etc.
  • none/empty string: useful for style, test and refactor changes that are done across all packages (e.g. style: add missing semicolons) and for docs changes that are not related to a specific package (e.g. docs: fix typo in LICENSE).

Subject

The subject contains a succinct description of the change:

  • use the imperative, present tense: "change" not "changed" nor "changes"
  • don't capitalize the first letter
  • no dot (.) at the end

Body

Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.

Footer

The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit Closes.

Breaking Changes should start with the word BREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this.