From 618da397eda18f206409e428bf462b0b42cf145b Mon Sep 17 00:00:00 2001 From: Asif Sayyed Date: Wed, 3 Jun 2026 14:30:40 +0530 Subject: [PATCH 1/2] #42 YAML syntax error --- .github/workflows/theseus-engine.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/theseus-engine.yml b/.github/workflows/theseus-engine.yml index 1844812..75ae0e3 100644 --- a/.github/workflows/theseus-engine.yml +++ b/.github/workflows/theseus-engine.yml @@ -162,19 +162,15 @@ jobs: for repo, s in sorted(statuses.items()) ) - body = f"""## Automated Theseus Data Engine Run - -| Repo | Status | -|------|--------| -{rows} -| **Total** | **{passed}/{total} completed** | - -This pull request contains the latest pre-computed persistence data for the tracked repositories. - -**Trigger:** Monthly Schedule / Workflow Dispatch -""" + header = "## Automated Theseus Data Engine Run\n\n" + table = "| Repo | Status |\n|------|--------|\n" + total = f"| **Total** | **{passed}/{total} completed** |\n\n" + footer = ("This pull request contains the latest pre-computed " + "persistence data for the tracked repositories.\n\n" + "**Trigger:** Monthly Schedule / Workflow Dispatch") + body = header + table + rows + "\n" + total + footer with open("pr-body.md", "w") as f: - f.write(body.strip()) + f.write(body) PYEOF - name: Validate graph files From 814b1d58de7c7690cb749135648b72beb1e55af5 Mon Sep 17 00:00:00 2001 From: Asif Sayyed Date: Wed, 3 Jun 2026 14:37:24 +0530 Subject: [PATCH 2/2] =?UTF-8?q?#42=20total=20is=20reassigned=20from=20int?= =?UTF-8?q?=20=E2=86=92=20str,=20which=20shadows=20the=20original?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/theseus-engine.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/theseus-engine.yml b/.github/workflows/theseus-engine.yml index 75ae0e3..73ca61d 100644 --- a/.github/workflows/theseus-engine.yml +++ b/.github/workflows/theseus-engine.yml @@ -164,11 +164,11 @@ jobs: header = "## Automated Theseus Data Engine Run\n\n" table = "| Repo | Status |\n|------|--------|\n" - total = f"| **Total** | **{passed}/{total} completed** |\n\n" + total_row = f"| **Total** | **{passed}/{total} completed** |\n\n" footer = ("This pull request contains the latest pre-computed " "persistence data for the tracked repositories.\n\n" "**Trigger:** Monthly Schedule / Workflow Dispatch") - body = header + table + rows + "\n" + total + footer + body = header + table + rows + "\n" + total_row + footer with open("pr-body.md", "w") as f: f.write(body) PYEOF