Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 9006b72

Browse files
committed
bug(commitStyleAnalyzer): Add system prompt
- Added a system prompt to the commit style analysis function
1 parent a654222 commit 9006b72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ async function main(): Promise<void> {
7373
// Handle format selection
7474
if (flags.learn) {
7575
try {
76+
const systemPrompt = `You are an expert in git commit message styling and formatting.`;
7677
const commits = await getCommitHistory(flags.author);
77-
const styleGuide = await analyzeCommitStyle(commits, apiKey);
78+
const styleGuide = await analyzeCommitStyle(systemPrompt, commits, apiKey);
7879

7980
if (flags.author) {
8081
await storeCommitStyle(styleGuide, flags.author);

0 commit comments

Comments
 (0)