fix: commit agent changes before opening PR

This commit is contained in:
2026-05-06 16:00:31 +08:00
parent c7d972e5cd
commit 61c194de37
5 changed files with 70 additions and 22 deletions

View File

@@ -38,9 +38,9 @@ def test_prompt_and_pr_body_include_contract_sections(db):
prompt = render_implementer_prompt(repo, issue, "agent/issue-7-add-thing")
body = render_pr_body(issue, "## Summary\nDone")
assert "AGENT_IMPLEMENTATION_REPORT.md" in prompt
assert "Closes #7" in body
assert "Human Review Gate" in body
assert ".agent-output/AGENT_IMPLEMENTATION_REPORT.md" in prompt
assert "关联 Issue#7" in body
assert "人工审核" in body
def test_review_report_parsing_extracts_verdict_and_comment():