fix: auto-publish log showing unpublished, merge changelog, version to 1.0.0-beta.2

This commit is contained in:
sunny-335
2026-06-17 23:13:45 +08:00
parent c3e003a572
commit e6839b4aad
4 changed files with 21 additions and 61 deletions
@@ -231,12 +231,13 @@ public class AiReplyOrchestrator {
}
return publishReply(context, aiReply, replyRecord, reviewResult.score(), personaName);
})
.switchIfEmpty(
publishReply(context, aiReply, replyRecord, 100, personaName)
)
.onErrorResume(e -> {
log.warn("[Orchestrator] Review error, auto-passing: {}", e.getMessage());
return publishReply(context, aiReply, replyRecord, 100, personaName);
// review() already handles errors internally (returns PASS),
// so this only fires for errors from publishReply/updateRecord.
// Do NOT re-call publishReply to avoid double-publish / overwriting published=false.
log.error("[Orchestrator] Error during review/publish for {}: {}",
context.commentId(), e.getMessage(), e);
return Mono.empty();
});
});
}
+1 -1
View File
@@ -30,4 +30,4 @@ spec:
url: "https://github.com/sunny-335/plugin-comment-ai-autopilot/blob/main/LICENSE"
settingName: "comment-ai-autopilot-settings"
configMapName: "comment-ai-autopilot-configmap"
version: "1.0.0-beta.2-r8k4n2"
version: "1.0.0-beta.2"