diff --git a/main.js b/main.js index 03ac162..04a51aa 100644 --- a/main.js +++ b/main.js @@ -202,7 +202,6 @@ async function getCommitsForLLM(folderPath, hashes) { return commits; } -// 2. Prompts für LLM bauen async function getPrompt(folderPath, hashes) { const commits = await getCommitsForLLM(folderPath, hashes); @@ -214,7 +213,8 @@ Generate a concise git commit message for these changes: ${diff} -Don't give any feedback on the code, just analyze what changed and write the git commit message. Keep it short! A commit message MUST NOT exceed 70 characters!`; +Don't give any feedback on the code, just analyze what changed and write the git commit message. Keep it short! A commit message MUST NOT BE STRAIGHT TO THE POINT! +Also reply to my message, just give me the commit message.`; } else if (commits.length > 1) { // Multiple commits: Squash them, give all diffs as a big change. const combinedDiffs = commits.map(c => c.diff).join('\n\n'); @@ -226,7 +226,8 @@ Here are the combined diffs: -------------------------------------- Even if this might seem like a lot of code, I need you to answer in a SINGLE SENTENCE. A git commit message to be precise is what I need from you, to protocol these changes. -Don't give any feedback on the code! Just analyze what changed and write the git commit message. Keep it short! A commit message MUST NOT exceed 70 characters!`; +Don't give any feedback on the code! Just analyze what changed and write the git commit message. Keep it short! A commit message MUST NOT BE STRAIGHT TO THE POINT! +Don't reply to my message, just give me the commit message.`; } else { throw new Error('No commits found for LLM prompt.'); }