# core-validate-commit

> Validate the commit message for a particular commit in node core

Latest version **6.0.0** (published 2026-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install core-validate-commit
pnpm add core-validate-commit
yarn add core-validate-commit
bun add core-validate-commit
```

Provides the command `core-validate-commit`.

## Health

**Score 60/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-04-27 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.21.1 \|\| ^24.12.0 \|\| >=26.0.0 |
| Dependencies | 1 |
| Unpacked size | 316.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 55 |
| Author | Evan Lucas |
| Maintainers | targos, evanlucas, trott, joyeecheung, nodejs-foundation, richardlau, raisinten |

## Links

- npm: https://www.npmjs.com/package/core-validate-commit
- Repository: https://github.com/nodejs/core-validate-commit
- Issues: https://github.com/nodejs/core-validate-commit/issues
- npm.io page: https://npm.io/package/core-validate-commit

## Dependencies (1)

- [gitlint-parser-base](https://npm.io/package/gitlint-parser-base.md) ^2.0.0

## Recent versions

- 6.0.0 (latest) — 2026-04-27
- 5.0.1 — 2026-03-18
- 5.0.0 — 2026-03-13
- 4.1.0 — 2024-08-05
- 4.0.0 — 2023-03-30
- 3.20.0 — 2023-03-20
- 3.19.0 — 2023-03-06
- 3.18.0 — 2022-11-07
- 3.17.1 — 2022-10-25
- 3.17.0 — 2022-10-10
- 3.16.1 — 2022-07-04
- 3.16.0 — 2022-03-15
- 3.15.0 — 2022-03-01
- 3.14.0 — 2022-01-17
- 3.13.4 — 2021-04-13
- … 34 more at https://npm.io/package/core-validate-commit/versions

## README

# core-validate-commit

[![Build Status](https://github.com/nodejs/core-validate-commit/actions/workflows/node.js.yml/badge.svg)](https://github.com/nodejs/core-validate-commit/actions/workflows/node.js.yml)
[![codecov](https://img.shields.io/codecov/c/github/nodejs/core-validate-commit.svg?style=flat-square)](https://codecov.io/gh/nodejs/core-validate-commit)

Validate the commit message for a particular commit in node core

## Install

```bash
$ npm install [-g] core-validate-commit
```

## Usage

```bash
# for a single commit
$ core-validate-commit <sha>

# validate since <sha>
$ git rev-list <sha>..HEAD | xargs core-validate-commit

# list all rules
$ core-validate-commit --list
         fixes-url enforce format of Fixes URLs
  line-after-title enforce a blank newline after the commit title
       line-length enforce max length of lines in commit body
      metadata-end enforce that metadata is at the end of commit messages
            pr-url enforce PR-URL
         reviewers enforce having reviewers
         subsystem enforce subsystem validity
      title-format enforce commit title format
      title-length enforce max length of commit title
```

To see a list of valid subsystems:
```bash
$ core-validate-commit --list-subsystem
```

Valid subsystems are also defined in [lib/rules/subsystem.js](./lib/rules/subsystem.js).

## Test

```bash
$ npm test
```

## Author

Evan Lucas

## License

MIT (See `LICENSE` for more info)

---
_Source: https://npm.io/package/core-validate-commit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
