Skip to content
OddsockLocal
Local
Source text
Typefeat
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Choose a type. feat is the start.
  2. Fill in scope if you have one. Leave it empty for a bare type: subject.
  3. Write a single-line subject. Add a body if the subject is not enough.
  4. Fill in Breaking change only when the commit breaks callers. Copy the message into git commit.

What is Conventional commit?

A conventional commit is a subject line machines can sort, plus an optional body. You pick a type, optionally a scope, type a subject, and optionally a body and a breaking-change note. Type feat, scope api, subject remove endpoint, breaking change Use v2 produces feat(api)!: remove endpoint, a blank line, and BREAKING CHANGE: Use v2.

Read more

The bang is not something you type. It appears only when the breaking-change field is filled in, and that same text is repeated as the footer. An empty breaking-change field leaves the bang off. Types are the usual set: feat, fix, docs, refactor, perf, test, build, ci, chore, style, revert. A subject or a scope with a newline is rejected, and a scope may not contain parentheses, because those would break the type(scope) shape.

The page does not run git. It only formats the message you then pass to git commit. If the body is filled in, it sits between the subject and the footer, separated by blank lines.

Use cases

  • A team requires feat and fix prefixes and you want the bang and the BREAKING CHANGE footer to stay in sync.
  • A changelog generator keys off scope, and you want api in parentheses rather than improvised in the subject.
  • You are writing a revert or a chore and you want the type taken from the list so it is spelled the way the linter expects.
  • A subject someone drafted has a line break in the middle, and you want that caught before the commit message is saved.

A breaking feature with a scope

Type feat, scope api, subject remove endpoint, breaking change Use v2. Body left empty.

feat(api)!: remove endpoint\n\nBREAKING CHANGE: Use v2

Why use Oddsock

The exclamation mark and the BREAKING CHANGE footer are written from the same field, so one of them cannot be forgotten.

Related tools

Using this tool

Only when Breaking change has text. The subject becomes type(scope)!: subject and a BREAKING CHANGE footer is added. Clearing the field removes both.