Spaces:
Sleeping
Sleeping
Commit ·
8718486
1
Parent(s): f53394d
going through further changes
Browse files
app.py
CHANGED
|
@@ -210,7 +210,8 @@ def format_comment(
|
|
| 210 |
# Core validation logic (shared by webhook + startup sweep)
|
| 211 |
# ---------------------------------------------------------------------------
|
| 212 |
|
| 213 |
-
REPORT_HEADER = "## EEE Validation
|
|
|
|
| 214 |
|
| 215 |
|
| 216 |
def process_pr(pr_num: int) -> dict:
|
|
@@ -274,7 +275,9 @@ def pr_needs_validation(pr_num: int) -> bool:
|
|
| 274 |
last_report_time = None
|
| 275 |
last_commit_time = None
|
| 276 |
for event in details.events:
|
| 277 |
-
if event.type == "comment" and event.content and
|
|
|
|
|
|
|
| 278 |
last_report_time = event.created_at
|
| 279 |
if event.type == "commit":
|
| 280 |
last_commit_time = event.created_at
|
|
|
|
| 210 |
# Core validation logic (shared by webhook + startup sweep)
|
| 211 |
# ---------------------------------------------------------------------------
|
| 212 |
|
| 213 |
+
REPORT_HEADER = "## ✅ EEE Validation"
|
| 214 |
+
REPORT_HEADER_FAIL = "## ❌ EEE Validation"
|
| 215 |
|
| 216 |
|
| 217 |
def process_pr(pr_num: int) -> dict:
|
|
|
|
| 275 |
last_report_time = None
|
| 276 |
last_commit_time = None
|
| 277 |
for event in details.events:
|
| 278 |
+
if event.type == "comment" and event.content and (
|
| 279 |
+
event.content.startswith(REPORT_HEADER) or event.content.startswith(REPORT_HEADER_FAIL)
|
| 280 |
+
):
|
| 281 |
last_report_time = event.created_at
|
| 282 |
if event.type == "commit":
|
| 283 |
last_commit_time = event.created_at
|