Spaces:
Sleeping
Sleeping
Require review and passing tests prominently in generated PRs
Browse filesA warning is rendered above the score table. Separate-file cleanup, unverified cross-file behavior and potential damage are disclosed. Nine PR tests and the touched-file hygiene gate passed.
- server/github_pr.py +8 -2
server/github_pr.py
CHANGED
|
@@ -115,11 +115,17 @@ def pr_body(files: list[CheckedFile]) -> str:
|
|
| 115 |
)
|
| 116 |
return (
|
| 117 |
f"Readability cleanup suggested by [CodeHygiene]({PROJECT_URL}).\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
"| File | Score (of 100) | Issues resolved |\n"
|
| 119 |
"| --- | --- | --- |\n"
|
| 120 |
f"{rows}\n\n"
|
| 121 |
-
"
|
| 122 |
-
"
|
| 123 |
)
|
| 124 |
|
| 125 |
|
|
|
|
| 115 |
)
|
| 116 |
return (
|
| 117 |
f"Readability cleanup suggested by [CodeHygiene]({PROJECT_URL}).\n\n"
|
| 118 |
+
"> [!WARNING]\n"
|
| 119 |
+
"> **REVIEW AND PASSING TESTS ARE REQUIRED BEFORE MERGING.**\n"
|
| 120 |
+
"> Each file was cleaned separately. Cross-file interactions and application behavior "
|
| 121 |
+
"were not verified. These edits must not be treated as drop-in fixes.\n"
|
| 122 |
+
"> Every change must be reviewed, and all relevant tests must be run and confirmed passing. "
|
| 123 |
+
"**Serious bugs, data loss, or outages may result if these checks are skipped.**\n\n"
|
| 124 |
"| File | Score (of 100) | Issues resolved |\n"
|
| 125 |
"| --- | --- | --- |\n"
|
| 126 |
f"{rows}\n\n"
|
| 127 |
+
"Readability scores were checked automatically. Functional correctness and passing "
|
| 128 |
+
"tests were not verified.\n"
|
| 129 |
)
|
| 130 |
|
| 131 |
|