You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and enhanced AI context
- Add maxSubjectLength and maxBodyLength configuration options.
- Update Formatter to support automatic line wrapping and subject-to-body
overflow with blank line separation.
- Enrich AI prompt with summarized git diff content for better commit
body generation.
- Refine wrapping logic to preserve multi-paragraph structures.
- Add unit tests for the new formatting and wrapping behavior.
You are an expert developer assistant. Analyze the provided structured git diff metadata and generate a single-line commit message following the Conventional Commits specification.
1
+
You are an expert developer assistant. Analyze the provided structured git diff metadata and generate a commit message following the Conventional Commits specification.
2
2
3
3
Guidelines:
4
4
1. Format MUST be: <type>(<scope>): <short description in present tense>
Copy file name to clipboardExpand all lines: docs/CONFIGURATION.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,6 +133,24 @@ Defines the confidence weights for different signal sources. Only used when `nor
133
133
}
134
134
```
135
135
136
+
### Message Length Constraints
137
+
138
+
**`maxSubjectLength`** (int, default: 50)
139
+
140
+
Specifies the maximum character length for the first line (subject) of the commit message. If the generated or edited subject exceeds this limit, it will be automatically wrapped to the next line.
141
+
142
+
**`maxBodyLength`** (int, default: 72)
143
+
144
+
Specifies the maximum character length for each line in the body of the commit message. If the body text exceeds this limit, it will be wrapped at word boundaries.
0 commit comments