Getting Started

Learn our commit convention

3 min read
•457 words

We like to have a clean project history. Our commits convention is inspired by Conventional Commits but customized with gitmoji to make it more visual and fun.

Structure

The commit message should be structured as follows and in lowercase:

<gitmoji> <type> <description> [(#<issue number>)]

[optional body]

[optional footer(s)]

Example

📝 update documentation contributors

- Add @jerembdn as a contributor
- Add @younesbessa as a contributor

Co-authored-by: Younes Bessa <[email protected]>

Most of the time, a simple one-liner is enough:

📝 update documentation contributors

Types

We use the following commit types:

TypeDescription
addAdd a new feature
fixFix a bug
improveImprove something
updateUpdate something
removeRemove something
refactorRefactor something
renameRename something
moveMove a file or folder
upgradeUpgrade dependencies
downgradeDowngrade dependencies
initialInitial commit of a repository
releaseRelease / version tag

The first commit of a repository uses initial, and a version tag uses release:

🎉 initial commit
🔖 release @onruntime/translations v0.3.0

Description

The <type> is the verb of the subject, and the description completes it. Read together, they make one sentence:

# Good
📝 update documentation contributors

So don't open the description with a second verb. The type is already one, and the subject ends up stacking two sentences, which is what a fix: prefix leads to. Drop the verb and keep what it acted on:

# Bad
💄 improve scale down the gem on its card
🐛 fix stop the footer from wrapping

# Good
💄 improve the gem size on its card
🐛 fix the footer wrapping

Write it in imperative mood and lowercase:

# Bad
📝 updated documentation contributors

# Bad
📝 Update documentation contributors

A Verb That Is a Noun

Some words are both, and the one you mean is the noun: ✨ add open graph image is fine. When it reads as a verb, an article makes it a noun phrase again: ✨ add a show more button.

Issue Number

Link commits to issues by adding the issue number:

📝 update documentation contributors (#123)

Body

Use the body for context and motivation:

📝 update documentation contributors

- Add @jerembdn as a contributor
- Add @younesbessa as a contributor

Co-authored-by: Younes Bessa <[email protected]>

One Commit, One Purpose

Each commit should represent a single logical change. Don't mix unrelated changes.

Last updated on 10/05/2026