Skip to content

Commit

Permalink
bug(commitStyleAnalyzer): Add system prompt
Browse files Browse the repository at this point in the history
- Added a system prompt to the commit style analysis function
  • Loading branch information
sidedwards committed Oct 30, 2024
1 parent a654222 commit 9006b72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ async function main(): Promise<void> {
// Handle format selection
if (flags.learn) {
try {
const systemPrompt = `You are an expert in git commit message styling and formatting.`;
const commits = await getCommitHistory(flags.author);
const styleGuide = await analyzeCommitStyle(commits, apiKey);
const styleGuide = await analyzeCommitStyle(systemPrompt, commits, apiKey);

if (flags.author) {
await storeCommitStyle(styleGuide, flags.author);
Expand Down

0 comments on commit 9006b72

Please sign in to comment.