udacity-commit

v1.2.2
io.github.qwertymuzaffar/udacity-commit Checked 20 hours ago Published 4 months ago

Validate & format git commit messages per the Udacity Git Commit Message Style Guide.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_commit_message Validate a commit message

Check a commit message against the Udacity Git Commit Message Style Guide. Returns whether it is compliant plus any problems (violations) and warnings (hints).

ParameterTypeDescription
message *stringThe full commit message to check

format_commit_message Format a Udacity-style commit message

Compose a compliant commit message from its parts. The subject is capitalized, a trailing period is removed, and the body is wrapped at 72 characters.

ParameterTypeDescription
subject *stringImperative subject; auto-capitalized, trailing period removed
type *string
bodystringWhat & why; auto-wrapped at 72 chars
footerstringIssue refs, e.g. "Resolves: #123"

validate_branch_name Validate a git branch name

Check a git branch name against the companion type/kebab-case convention (e.g. "feat/add-dark-mode"). Returns whether it is compliant plus any problems (violations) and warnings (hints). Base branches like main/master are exempt.

ParameterTypeDescription
name *stringThe branch name to check, e.g. "feat/add-dark-mode"