fix: auto-publish log showing unpublished, merge changelog, version to 1.0.0-beta.2
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user