hive-forge: pr reviews names the poster of an inline comment that is not the reviewer's
This commit is contained in:
parent
3a77e869eb
commit
c8c5a19761
1 changed files with 53 additions and 11 deletions
|
|
@ -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}"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue