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
+4 -3
View File
@@ -1,4 +1,5 @@
"""round-title: print the opening of a round commit's title, counted from the round's report."""
from collections.abc import Mapping
import pathlib
from larv_review.reviewer_header import branch_summaries, unanswered_round
@@ -8,14 +9,14 @@ from review_rules.round_titles import round_prefix
from git_cli.git_repo import top
def round_title(default: str, pass_: str, home: pathlib.Path) -> str | Failure:
def round_title(default: str, pass_: str, home: pathlib.Path, env: Mapping[str, str]) -> str | Failure:
"""The title prefix of pass_'s unanswered round, counted from that round's report in the chunk's review folder."""
summaries = branch_summaries(default, home)
summaries = branch_summaries(default, home, env)
round_ = summaries if isinstance(summaries, Failure) else unanswered_round(summaries, pass_)
if isinstance(round_, Failure):
return round_
worktree = top()
if isinstance(worktree, Failure):
return worktree
findings = findings_in(standing_report(pathlib.Path(review_folder(str(home), worktree)), pass_, round_))
findings = findings_in(standing_report(pathlib.Path(review_folder(str(home), env, worktree)), pass_, round_))
return findings if isinstance(findings, Failure) else round_prefix(pass_, round_, findings)