Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix: Retrieve problem statement for template

Kilian Liereta95a2b1e1ed3
diff --git a/tools/review_on_submit/bin/submit b/tools/review_on_submit/bin/submit
index b6865aff..3ffc4f80 100644
--- a/tools/review_on_submit/bin/submit
+++ b/tools/review_on_submit/bin/submit
@@ -33,7 +33,7 @@ def main() -> None:
if not args.force and not registry.get("SUBMIT_TRIGGERED_BEFORE"):
message = registry.get("SUBMIT_REVIEW_MESSAGE", "")
message = message.replace("{{diff}}", patch)
- message = message.replace("{{problem_statement}}", "")
+ message = message.replace("{{problem_statement}}", registry.get("PROBLEM_STATEMENT", ""))
registry["SUBMIT_TRIGGERED_BEFORE"] = True
print(message)
sys.exit(0)