fix: reword reviewer feedback prompt (#1449)

* fix: reword reviewer feedback prompt

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: refine reviewer feedback prompt

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
This commit is contained in:
Johannes du Plessis 2026-06-08 10:02:02 -07:00 • committed by GitHub
parent d2268871eb
commit 1cd26dda53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -103,7 +103,7 @@ def render_inline_comment_body(finding: Finding) -> str:
*(Refers to lines X-Y)*
---
*Was this helpful? React with 👍 or 👎 to provide feedback.*
*Your feedback helps Open SWE learn. React with 👍 or 👎 to tell us if this review comment was useful.*
```suggestion
<replacement>
@ -131,7 +131,13 @@ def render_inline_comment_body(finding: Finding) -> str:
body_parts.extend(["", detail])
if line_ref:
body_parts.extend(["", line_ref])
body_parts.extend(["", "---", "*Was this helpful? React with 👍 or 👎 to provide feedback.*"])
body_parts.extend(
[
"",
"---",
"*Your feedback helps Open SWE learn. React with 👍 or 👎 to tell us if this review comment was useful.*",
]
)
body = "\n".join(body_parts)
suggestion = finding.get("suggestion")

View file

@ -65,8 +65,9 @@ def test_render_inline_comment_body_without_suggestion() -> None:
assert "<!-- open-swe-review-comment" in body
assert '"id":"f_' in body
assert "just text" in body
assert "Was this helpful?" in body
assert "Your feedback helps Open SWE learn." in body
assert "👍 or 👎" in body
assert "tell us if this review comment was useful" in body
def test_render_inline_comment_body_with_suggestion_appends_block() -> None: