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.
This commit is contained in:
asepharyana
2026-09-21 15:35:30 +07:00
parent 4fa7d8b6d0
commit 391743780d
+1 -1
View File
@@ -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<string, unknown>)["score"]
? ` — score ${(result.data["review"] as Record<string, unknown>)["score"]}/10`
? ` — score ${(result.data["review"] as Record<string, unknown>)["score"]}/100`
: "") +
`\n${result.markdown.slice(0, 4000)}`,
"✅ PR-Agent Review Complete",