fix(FN-4700): finalize benign no-change evidence and docs
Fusion-Task-Id: FN-4700 Fusion-Task-Lineage: 87097576-c2be-4be4-8e10-9af85831fe5d
This commit is contained in:
committed by
gsxdsm
parent
b144ff7636
commit
2739259fea
@@ -5912,8 +5912,10 @@ export async function aiMergeTask(
|
||||
};
|
||||
}
|
||||
|
||||
if (classification.kind === "proven-no-op") {
|
||||
const noOpReason = `branch has zero commits ahead of ${classification.baseRef}`;
|
||||
if (classification.kind === "proven-no-op" || classification.kind === "no-changes-finalized") {
|
||||
const noOpReason = classification.kind === "proven-no-op"
|
||||
? `branch has zero commits ahead of ${classification.baseRef}`
|
||||
: "verification-only finalize: no branch and no owned commits";
|
||||
const mergeDetails: MergeDetails = {
|
||||
...(task.mergeDetails || {}),
|
||||
mergeConfirmed: true,
|
||||
@@ -5927,7 +5929,9 @@ export async function aiMergeTask(
|
||||
await store.updateTask(taskId, { mergeDetails, modifiedFiles: [] });
|
||||
await store.logEntry(
|
||||
taskId,
|
||||
`Auto-finalized no-op (proven): start point on ${classification.baseRef}; modifiedFiles cleared`,
|
||||
classification.kind === "proven-no-op"
|
||||
? `Auto-finalized no-op (proven): start point on ${classification.baseRef}; modifiedFiles cleared`
|
||||
: "Auto-finalized verification-only no-change task: branch absent with no owned commits; modifiedFiles cleared",
|
||||
);
|
||||
await store.moveTask(taskId, "done");
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user