Watch
0
0
Fork
You've already forked hyperhive
0

hive-forge: pr reviews names the poster of an inline comment that is not the reviewer's

This commit is contained in:
damocles 2026-11-05 09:31:15 +01:00 • committed by mara
commit c8c5a19761

View file

@ -494,7 +494,7 @@ fn format_event(ev: &Value) -> String {
let inline = ev.get("inline_comments").and_then(Value::as_array);
for c in inline.into_iter().flatten() {
out.push_str("\n ");
out.push_str(&render_inline_comment(c));
out.push_str(&render_inline_comment(c, None));
}
out
}
@ -503,7 +503,7 @@ fn format_event(ev: &Value) -> String {
"code" => {
let body = ev.get("body").and_then(Value::as_str).unwrap_or("");
match ev.get("inline") {
Some(c) => format!("commented on a line\n {}", render_inline_comment(c)),
Some(c) => format!("commented on a line\n {}", render_inline_comment(c, None)),
None => format!("commented on a line: {body}"),
}
}