mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 12:43:16 +00:00
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:
parent
d2268871eb
commit
1cd26dda53
2 changed files with 10 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue