From 391743780d6d66edbbdab7a24bbccd1bf1e78feb Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 21 Sep 2026 15:35:30 +0700 Subject: [PATCH] fix(discord): review score scale is 0-100 not /10 The LLM review score comes from the PR Reviewer Guide table which uses a 0-100 scale (72, 78, 100...). The Discord notification appended '/10', making it read 'score 72/10'. Fixed to '/100' to match the actual scale. --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index 4bae19f..e5edd7c 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -115,7 +115,7 @@ export async function handleWebhook( env.discordWebhookUrl, `**${owner}/${repo}** PR #${pr.number} reviewed` + (result.data && result.data["review"] && (result.data["review"] as Record)["score"] - ? ` — score ${(result.data["review"] as Record)["score"]}/10` + ? ` — score ${(result.data["review"] as Record)["score"]}/100` : "") + `\n${result.markdown.slice(0, 4000)}`, "✅ PR-Agent Review Complete",