Read and write each record through the store its config names, and open one for agents with project-record
CI / tests (pull_request) Successful in 2m14s

This commit is contained in:
2026-11-13 23:54:04 +01:00
parent 854eb63407
commit 084bc74b1c
40 changed files with 624 additions and 161 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ from release_plan.release_standing import chunk_item, Cut, default_plan, Next, R
from git_cli.git_repo import default_ref, git
from deploy_release.deploy import deploy
from failure import Failure
from record_store.stores import FileStore
from deploy_release import forge
from chunk_preflight.choices import forge_of
from release_plan.todo_table import items
@@ -108,7 +109,8 @@ def same_origin(clone: str, checkout: str) -> Failure | None:
def ready_release(clone: str, ref: str) -> Release | Failure:
"""The next release, as chunk-preflight works it out, where it is ready to cut: it holds no item in todo.md, its release review has landed and changes are unreleased."""
plan = default_plan(clone, ref, "todo.md", "CHANGELOG.md")
# This setup's own changelog, at its fixed path in the clone: --cut releases claude-config, which no project's config names here.
plan = default_plan(clone, ref, "todo.md", FileStore(pathlib.Path(clone, "CHANGELOG.md"), "CHANGELOG.md"))
found = items(plan.todo) if isinstance(plan.todo, str) else plan.todo
if isinstance(found, Failure):
return Failure(f"todo.md on {ref} cannot be read: {found.reason}")