LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

core-validate-commit

Node.js commit message validator

TLDR

Validate a specific commit
$ core-validate-commit [commit_sha]
copy
Validate the most recent commit (HEAD)
$ core-validate-commit
copy
Validate a range of commits
$ core-validate-commit [main..HEAD]
copy
List the validation rules being applied
$ core-validate-commit --list
copy

SYNOPSIS

core-validate-commit [options] [commit]

DESCRIPTION

core-validate-commit is a specialized tool developed for the Node.js project to enforce commit message conventions. It validates that commit messages follow the project's specific format requirements, which include proper subsystem prefixes, grammatical rules, and metadata formatting.The Node.js project uses a structured commit message format where each commit must start with a subsystem identifier (like "doc:", "test:", "src:") followed by a concise description. This tool parses commit messages and validates them against these rules, checking for issues like missing subsystems, improper capitalization, trailing periods, and incorrect line lengths.The tool is primarily used in automated CI/CD pipelines to ensure that all commits landing in the Node.js repository follow project conventions. This consistency makes it easier to generate changelogs, track changes by subsystem, and maintain project history. While specific to Node.js core development, the tool demonstrates the value of automated commit message validation for large projects.

SEE ALSO

git(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid