Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
"""When the plan calls a scoring run: a chunk that ships a floor item, one that empties a release that work has already landed towards, or one after a release cut unmeasured; and each reason it gives."""
from collections.abc import Mapping
import pathlib
from release_plan.release_standing import Cut, LastCut, next_release, project_plan, standing_of, Unknown
@@ -79,9 +80,9 @@ def finished_unseen(config: ProjectConfig, ids: list[int], chunk: list[Item]) ->
return None
def plan_reasons(ref: str, ids: list[int] | None, home: pathlib.Path) -> list[str] | Failure:
def plan_reasons(ref: str, ids: list[int] | None, home: pathlib.Path, env: Mapping[str, str]) -> list[str] | Failure:
"""Why the plan calls a scoring run, from todo.md at ref and the checkout's, each file where the project's config puts it; empty where the project opts out of the comprehension check. ref is the default branch, or the commit where the chunk began. Where ids is None, the chunk ships each item the plan at ref holds and the checkout's does not."""
config = located(None, home)
config = located(None, home, env)
if isinstance(config, Failure):
return config
checkout = str(config.top)