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
feat(commitlint): improve consistency handling and update prompt structure for commit message generation
Enhancements are made to the consistency handling in the commitlint integration,
including the introduction of a new structure for consistency prompts. The
getConsistencyContent function is updated to accommodate the new format,
allowing for better management of commit messages and their associated
configuration settings. Additionally, the prompts for generating commit messages
are refined to ensure clarity and adherence to the specified requirements.
: '- Include appropriate scope in the commit message',
225
+
config.OCO_DESCRIPTION
226
+
? '- Include a description explaining the changes'
227
+
: '- Do not include a description',
228
+
config.OCO_EMOJI
229
+
? '- Use appropriate emoji at the start of the message'
230
+
: '- Do not use emoji'
231
+
].join('\n');
232
+
233
+
return[
217
234
{
218
235
role: 'system',
219
-
content: `${IDENTITY} Your mission is to create clean and comprehensive commit messages for two different changes in a single codebase and output them in the provided JSON format: one for a bug fix and another for a new feature.
236
+
content: `${IDENTITY} Your mission is to create a clean and comprehensive commit message that follows both the commitlint rules and maintains the style of the reference message.
220
237
221
238
Here are the specific requirements and conventions that should be strictly followed:
222
239
223
240
Commit Message Conventions:
224
241
- The commit message consists of three parts: Header, Body, and Footer.
0 commit comments