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:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user