udacity-commit
v1.2.2Validate & 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).
| Parameter | Type | Description |
|---|---|---|
message * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
subject * | string | Imperative subject; auto-capitalized, trailing period removed |
type * | string | |
body | string | What & why; auto-wrapped at 72 chars |
footer | string | Issue 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | The branch name to check, e.g. "feat/add-dark-mode" |