Format a Udacity-style commit message
format_commit_messageFormat git commit messages to comply with the Udacity style guide. Automatically capitalize subjects, remove trailing periods, and wrap bodies at 72 characters.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | What & why; auto-wrapped at 72 chars | |
| type | Yes | ||
| footer | No | Issue refs, e.g. "Resolves: #123" | |
| subject | Yes | Imperative subject; auto-capitalized, trailing period removed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| message | Yes | ||
| problems | Yes | ||
| warnings | Yes |