Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 2.01 KB

COMMIT_GUIDELINES.md

File metadata and controls

46 lines (31 loc) · 2.01 KB

Commit Guidelines

1) Conventional Commits

For all contributions to this repo, you must use the conventional commits standard defined here.

This is used to generate automated change logs, allow for tooling to decide semantic versions for packages and applications, provide a rich and meaningful commit history along with providing a base for more advanced tooling to allow for efficient searches for decisions and context related to commits and code.

Commit types

The following commit types are supported in this repo:

  • fix: - Should be used for any bug fixes.
  • revert: - Should be used for any commits that revert changes.
  • wip: - Should be used for commits that contain work in progress.
  • feat: - Should be used for any new features added, regardless of the size of the feature.
  • chore: - Should be used for tasks such as releases.
  • ci: - Should be used for any work on GitHub Action workflows or scripts used in CI.
  • docs:- Should be used for adding or modifying documentation.
  • style: - Should be used for code formatting commits and linting fixes.
  • refactor: - Should be used for any type of refactoring work that is not a part of a feature or bug fix.
  • perf: - Should be used for a commit that represents performance improvements.
  • test: - Should be used for commits that are purely for automated tests.
  • deps: - Should be used for commit that are for dependency updates.

Example commit

Example

git commit -m 'feat: add select component with preview

Adds a select component with a preview window for selected item details.'

2) You must use the imperative mood for commit headers.

https://cbea.ms/git-commit/#imperative

The imperative mood simply means naming the subject of the commit as if it is a unit of work that can be applied instead of reporting facts about work done.

If applied, this commit will your subject line here.

Read the article above to find more examples and tips for using the imperative mood.