Commit message
commit_messageValidate and normalize Conventional Commit messages, returning structured results with validity, parsed data, and flags for type, length, or imperative-mood issues.
Instructions
Validate and normalize a Conventional Commit message (type(scope): subject). Returns { valid, normalized, errors, warnings, parsed } and flags type, length and imperative-mood issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The commit message to validate (first line is the header). | |
| allowedTypes | No | Commit types accepted by the project. | |
| requireScope | No | Whether a scope, e.g. (auth), is mandatory. | |
| maxSubjectLength | No | Maximum allowed length of the subject. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| parsed | Yes | ||
| warnings | Yes | ||
| normalized | Yes |