-
Notifications
You must be signed in to change notification settings - Fork 703
Commit Style Guide
Sk Niyaj Ali edited this page Dec 26, 2024
·
4 revisions
See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional. If your change is specific to one/two packages, consider adding the scope. Scopes should be brief but recognizable, e.g. content-docs
, theme-classic
, core
The various types of commits:
-
feat
: a new API or behavior for the end user. -
fix
: a bug fix for the end user. -
docs
: a change to the website or other Markdown documents in our repo. -
refactor
: a change to production code that leads to no behavior difference, e.g. splitting files, renaming internal variables, improving code style... -
test
: adding missing tests, refactoring tests; no production code change. -
chore
: upgrading dependencies, releasing new versions... Chores that are regularly done for maintenance purposes. -
misc
: anything else that doesn't change production code, yet is nottest
orchore
. e.g. updating GitHub actions workflow.
Do not get too stressed about PR titles, however. Your PR will be squash-merged and your commit to the development
branch will get the title of your PR, so commits within a branch don't need to be semantically named. The maintainers will help you get the PR title right, and we also have a PR label system that doesn't equate with the commit message types. Your code is more important than conventions!
Example:
feat(core): allow overriding of webpack config
^--^^----^ ^------------^
| | |
| | +-> Summary in present tense. Use lower case not title case!
| |
| +-> The package(s) that this change affected.
|
+-------> Type: see above for the list we use.
- Self Service API - https://demo.mifos.io/api-docs/apiLive.htm#selfbasicauth
- Join Firebase Android App Testing - https://appdistribution.firebase.dev/i/87a469306176a52a
- Kotlin Multiplatform - https://www.jetbrains.com/help/kotlin-multiplatform-dev/get-started.html
- JetBrains Toolbox - https://www.jetbrains.com/toolbox-app/
- Compose Multiplatform - https://www.jetbrains.com/compose-multiplatform/
- Fastlane - https://docs.fastlane.tools/