Generate conventional commit messages from a git diff or change description.
| Variable | Description |
|---|---|
| {{commit_type}} | Type: feat, fix, docs, style, refactor, perf, test, build, ci, chore |
| {{scope}} | Module or component affected (e.g. auth, api, parser) |
| {{change_summary}} | Brief description of what changed and why |
ppm install commit-message
# Raw
GET https://registry.pascalai.org/v1/packages/commit-message/1.0.0/raw
# Rendered
GET https://registry.pascalai.org/v1/packages/commit-message/1.0.0/render?commit_type=feat&scope=auth&change_summary=Add+JWT+refresh+token+rotation
uses promptlib;
var
Prompt := Get('commit-message');
Rendered := Bind(Prompt, [
'commit_type', 'feat',
'scope', 'auth',
'change_summary', 'Add JWT refresh token rotation with 7-day expiry'
]);
Result := LLM.Complete(Rendered);