Format a Udacity-style commit message
format_commit_messageAutomatically format git commit messages by capitalizing the subject, removing trailing period, and wrapping body at 72 characters according to Udacity guidelines.
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 |