The watcher that writes · Signal in, story out See every change. Publish every story. The moment your code ships, a spec shifts

Commit Message Conventions Across Open-Source Projects

Structured commit messages drive versioning, changelogs, and releases.

· 8 min read
Cover illustration for “Commit Message Conventions Across Open-Source Projects”
Commit Convention Standards · November 28, 2026 · 8 min read · 1,860 words

Commit message conventions across open-source projects are more than writing guidelines. They define the structured input that drives versioning, changelogs, and release automation. Their value depends on the whole pipeline, from a developer’s subject line to the release notes users read, with automated checks on the input and people shaping the output.

Why commit messages became structured data, not prose

At the keyboard, a commit message can feel like a quick note to self. Downstream, that same note may determine a release version or supply the description users read when software changes. Historically, messages served as annotation. They did not change how a program worked, so developers had little reason at the time to write messages that explained the changes. The resulting history could become a wall of “fix stuff” and “WIP” entries.

Release tooling changed the role of that history. Once tools began reading the commit log directly, the message format became a contract with the pipeline. Vague text gave tools no clear categories to work with and left future engineers without an explanation of what had changed. Structured messages gave tools and engineers a way to read that history. Over years, that discipline compounds into a history that is easier to maintain and automate against, rather than a record that requires repeated reconstruction.

The seven formatting rules that make a commit message machine-friendly and human-scannable

Seven formatting rules establish the baseline for readable, parseable messages. The first is a subject under 50 characters, which encourages tight scope and reduces truncation in commit lists, IDE plugins, and email notifications. The second is consistent capitalization, conventionally capitalizing only the first letter, because inconsistent case can frustrate case-sensitive searches. The third omits a final period from the subject. The subject functions as a headline.

The fourth rule separates the subject and body with a blank line. That separation has a concrete parsing purpose. Git treats everything before the first blank line as the title, so a missing separator can fold body text into the subject. The fifth rule uses the imperative mood, matching Git’s own “Merge” and “Revert” subjects. The test “If applied, this commit will ___” helps distinguish an instruction from a report written in the past tense.

The sixth rule reserves the body for what changed and why, leaving implementation details to the diff. Alternatives considered and non-obvious consequences belong there. The seventh puts issue references and ticket numbers in the footer, where they do not crowd the subject. Compare “fixed the bug where users couldn't log in when their session expired and the refresh token was also expired” with fix(session): handle double-expired token gracefully. The latter demonstrates scope and scanability, though typed subjects still need to respect the project’s length limit.

What Conventional Commits adds on top of formatting rules

Conventional Commits adds a typed prefix to that formatting baseline. Its canonical form is <type>(<scope>): <description>, followed by an optional body and footer. The prefix gives tools a release signal. A feat signals a MINOR version bump, a fix signals a PATCH, and an exclamation mark before the colon or a BREAKING CHANGE: footer signals a MAJOR bump. Scope is optional but strongly recommended for medium and large projects because it identifies the affected module and makes the history filterable by subsystem.

AngularJS originated the taxonomy inherited by much of this tooling, including feat, fix, chore, docs, style, refactor, and test. The first two types have direct versioning consequences. A feat denotes new functionality visible to users, API consumers, or another system, while a fix corrects broken or unexpected behavior. A message such as “fix: bug fixed” satisfies neither the explanatory purpose nor the reader’s need to understand the correction.

The other types sort changes into finer categories, but they do not automatically trigger those version bumps in the base mapping. A refactor denotes internal restructuring without an intentional external behavior change, while perf identifies measurable improvements to speed, memory, latency, or throughput. Evidence belongs in the body where available. The narrow types docs, test, and style identify documentation-only, test-only, and formatting-only changes, while ci marks CI configuration changes. Footers add another structured layer for issue references, co-authorship, and breaking-change declarations, using metadata that Git’s trailer parsing can read.

How the typed commit log drives semantic versioning and changelog generation automatically

A typed history lets release tools derive decisions from the log rather than ask a person to classify every change again. Tools such as semantic-release and commit-and-tag-version scan commits, group them by type, determine the release level, update the version, and generate organized changelog content. The latter is a community fork replacing the deprecated standard-version. Classification becomes an executable part of the release process. Its accuracy still depends on whether the author chose the right type.

Release Please applies Conventional Commits to release preparation, but its boundary is important. Its scope of “release automation” leaves publishing to package managers and complex branch management to other processes.

The oh-my-posh project demonstrates the message-to-output sequence concretely. Its Conventional Changelog GitHub Action processes commit messages, groups relevant entries under types such as feat, fix, and revert, and extracts their one-line descriptions into formatted release notes. It does not write a persistent CHANGELOG.md file. The release body is the generated output. Even before that transformation, a compliant repository’s git log --oneline output provides a readable, structured account of changes because the source messages already contain useful categories and descriptions.

How projects enforce convention at the commit and PR level

Structured output requires checks on the input. Commitlint validates messages at the commit-msg hook, before they enter the log. Husky can connect lint-staged, Commitlint, and test runners to pre-commit, commit-msg, and pre-push hooks respectively. The sequence catches formatting problems, message-convention violations, and regressions at distinct stages. A message hook can exempt Git-generated “Merge” and “Revert” commits so that enforcement does not reject the tool’s own automated subjects.

Kubernetes illustrates institutional rules without establishing a particular linting implementation. Its contributor guide asks for subjects of 50 characters or less, prohibits subjects beyond 72 characters, and requires body wrapping at 72 characters. Those are concrete constraints on contribution history. They are not evidence that Kubernetes integrates Commitlint into CI. At the branch layer, names such as feature/TICKET-123-short-description, fix/..., and hotfix/... extend the typed-prefix approach and can be checked by a pre-push hook or CI.

Teams that use these conventions should rebase the feature branch onto main before opening the PR so that the rebase reveals conflicts early. Squash merging produces a single clean commit, while a merge commit preserves context. Either strategy needs consistent enforcement to keep the main branch readable. PR validation adds a check so that local hooks do not have to enforce the convention on their own. Across a whole team, humans do not catch formatting violations consistently enough for reminders to serve as the enforcement system.

Where the conventional commits model is contested and why that matters

The strongest objection concerns classification. People often struggle to choose a type for a change, especially beyond feat and fix, where the base specification is less clear about what belongs in each category. Some of the categories inherited from Angular still overlap. The history of chore makes that drift visible. It no longer appears in Angular’s current guidelines, which give no official rationale for its removal, leaving teams that adopted it with a historical category absent from that reference.

The Linux kernel and FreeBSD specify component or subsystem prefixes rather than the feat, fix, and chore model. Their conventions organize history around project-relevant areas. This is a different classification choice that retains useful structure. It shows why the choice depends on what the project needs to filter, interpret, or automate.

Strict validation also imposes a contribution cost on people unfamiliar with the format, while AI coding tools can spread mechanically compliant but semantically empty messages into projects that never consciously selected it. Neither problem makes unstructured history a clear improvement. The lesson for automation-focused teams is to assess the taxonomy against the release decisions it must support. Where the types genuinely do not fit the domain, project-specific scope conventions offer an alternative to abandoning structure. Conventional Commits is useful because of what consumes it.

How AI-generated commits are straining the convention at its governance layer

AI-assisted contributions extend commit conventions from change classification into authorship disclosure. The Linux kernel previously recommended an Assisted-by: AGENT_NAME:MODEL_VERSION trailer, a requirement removed in Linux 7.4. Its policy leaves a separate Generated-by: tag undefined and reserves the addition of Signed-off-by tags for humans because the Developer Certificate of Origin requires an attestation by a human with legal standing. These fields represent distinct claims about automated assistance and human attestation.

Among the open-source policies surveyed, most projects allow AI-assisted contributions under some conditions, usually that a human reviews the work and takes responsibility for it. Roughly half of permissive policies require disclosure, sometimes through trailers, while licensing non-conflict checks are less universally required. A significant minority prohibit AI contributions. Rust, Fedora, and GCC have adopted formal policies, while FreeBSD, Blender, NixOS, and Jupyter are among projects without a settled position in the survey. Release pipelines therefore face project-specific authorship rules.

At the 2026 Linux Kernel Maintainers Summit, Linus Torvalds identified the growth in patches from people who do not know the kernel. His concern was not the LLMs themselves but their use by people without domain knowledge. Format validation cannot establish that knowledge. Where a project uses Generated-by: trailers, release tooling must distinguish whether that metadata should be surfaced, suppressed, or flagged for review. A feat commit with such a trailer keeps its type, but the trailer may affect how closely people review its release note before it is published.

Turning a structured commit log into published release communication

A generated changelog is a draft. It groups changes accurately for technical readers but does not necessarily explain their effect on a user’s work. Reposting that output directly skips the translation step. A three-layer model separates the technical changelog for developers, the public changelog for users, and the newsletter or announcement used for distribution. Each draws from the same source history while requiring a different level of explanation.

The translation follows the consequence of the change. A feat becomes something the user can do, a fix becomes something that works more reliably, and perf becomes a faster step in a workflow the user knows. The recommended process therefore uses conventional messages to generate changelog drafts automatically, then has a person edit them before they are published. Automation groups and extracts the changes, while the editor checks the writing for quality and voice. Without that gate, generic descriptions can leave users skimming or ignoring the release.

Project-specific training on a team’s own commits outperforms generic category definitions when generating release notes, giving sustained message discipline a role beyond parsing. For continuous delivery teams, the sequence can follow the work itself, as a commit lands, its type is parsed, a draft is generated, a human reviews it, and a post publishes. Communication is triggered by shipped changes. The final test of the convention is whether the meaning recorded at the keyboard survives that sequence and reaches users in language they can use.

More in Commit Convention Standards