Follow the submission specification, which is by far the most widely used by the Angular team

Submission format:

<type>(<scope>): <subject>
Copy the code

Example:

Fix (Order): Fixed a bug in the order moduleCopy the code

Description:

Type (required) Scope (optional) and Subject (required)

  • Title line: Mandatory, describes the main modification type and content
  • Topic content: describe why the changes were made, what changes were made, and the development ideas, etc

Alternative values for type are:

  • Feat: New Feature
  • Fix: Fixes bugs
  • -Jenny: There are some docs.
  • Style: format (changes that do not affect code execution)
  • Refactor: refactoring (i.e. code changes that are not new features or bug fixes)
  • Test: Adds a test
  • Chore: Changes to the build process or helper

or

  • Fix: fix the bug
  • Add: new features
  • Update: update
  • Style: Code format changes
  • Test: Adds test code
  • Revert: Undo the last COMMIT
  • Build: Changes to the build tool or build process, such as gulp to Webpack, webpack upgrade, etc

(Maybe it’s easier to understand)