Add condition to run LLM commit rewrite only if needsRelocation is false
This commit is contained in:
2
main.js
2
main.js
@@ -474,6 +474,7 @@ async function rewordCommitsSequentially(repoPath, commitMessageMap, hashes) {
|
|||||||
|
|
||||||
//---- 6. Workflow ----
|
//---- 6. Workflow ----
|
||||||
async function runLLMCommitRewrite(folderObj) {
|
async function runLLMCommitRewrite(folderObj) {
|
||||||
|
if(!folderObj.needsRelocation){
|
||||||
const hashes = folderObj.llmCandidates;
|
const hashes = folderObj.llmCandidates;
|
||||||
const birthday = folderObj.firstCandidateBirthday;
|
const birthday = folderObj.firstCandidateBirthday;
|
||||||
const folderPath = folderObj.path;
|
const folderPath = folderObj.path;
|
||||||
@@ -486,6 +487,7 @@ async function runLLMCommitRewrite(folderObj) {
|
|||||||
const messageMap = {};
|
const messageMap = {};
|
||||||
for (const entry of commitList) messageMap[entry.commit] = entry.newMessage;
|
for (const entry of commitList) messageMap[entry.commit] = entry.newMessage;
|
||||||
await rewordCommitsSequentially(folderPath, messageMap, hashes);
|
await rewordCommitsSequentially(folderPath, messageMap, hashes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user