Answer prose round 1: 0 🔴, 7 🟡 (0 misread); have the changelog restart loop-inbox, name the cut as dated in CHANGELOG.md, open the decision's Quality paragraph with the window's measurement, and move item 260 to 0.8.0
This commit is contained in:
+7
-4
@@ -108,7 +108,10 @@ def heading_commit(release: tuple[int, int, int], ref: str, cwd: str) -> str | N
|
||||
|
||||
|
||||
def release_reviewed(tag: str | None, ref: str, cwd: str, after: tuple[int, int, int] | None = None) -> bool | Failure:
|
||||
"""Whether ref holds, after tag or in all where tag is None, a commit titled as a release review opens: `Release review of <release>`. Where after is given, the version a branch with no tag counts as cut, a title counts only where its release is later."""
|
||||
"""Whether ref holds a commit titled as a release review opens, `Release review of <release>`: after tag, or anywhere where tag is None.
|
||||
|
||||
after is the version a branch with no tag counts as cut, or None. Where it is given, a title counts only where its release is later than after.
|
||||
"""
|
||||
titles = git("log", "--format=%s", f"{tag}..{ref}" if tag else ref, cwd=cwd)
|
||||
if isinstance(titles, Failure):
|
||||
return titles
|
||||
@@ -142,7 +145,7 @@ def next_release(found: list[Item], cut: LastCut) -> Upcoming | Cut | Unknown:
|
||||
"""The next release after cut, and whether work has landed towards it. found holds the plan's items.
|
||||
|
||||
Cut where the plan files items under the last cut's version or earlier, and Unknown where todo.md's texts since the cut cannot be read.
|
||||
Where the branch has no tag, the cut is cut_version's, so a release todo.md named whose items are all done still reads as the next release.
|
||||
Where the branch has no tag, todos_since holds every version of todo.md, so a release todo.md named whose items are all done still reads as the next release.
|
||||
"""
|
||||
earliest = min((item.release for item in found), default=None)
|
||||
version = cut_version(cut)
|
||||
@@ -161,7 +164,7 @@ def next_release(found: list[Item], cut: LastCut) -> Upcoming | Cut | Unknown:
|
||||
|
||||
|
||||
def cut_version(cut: LastCut) -> tuple[int, int, int] | None:
|
||||
"""The version cut counts as cut: its tag's; on a branch with no tag, the newest under a dated CHANGELOG.md heading, else BEFORE_FIRST_RELEASE. None where the tag names no version."""
|
||||
"""Which version is cut. It is the tag's, or None where the tag names no version. On a branch with no tag, it is the newest version under a dated CHANGELOG.md heading, else BEFORE_FIRST_RELEASE."""
|
||||
if cut.tag is None:
|
||||
return max(dated_headings(cut.changelog), default=BEFORE_FIRST_RELEASE)
|
||||
return version_of(cut.tag)
|
||||
@@ -172,7 +175,7 @@ def cut_name(cut: LastCut) -> str | None:
|
||||
if cut.tag is not None:
|
||||
return None if isinstance(cut.tag, Failure) else cut.tag
|
||||
headed = max(dated_headings(cut.changelog), default=None)
|
||||
return None if headed is None else f"{version(headed)}, under CHANGELOG.md's dated heading"
|
||||
return None if headed is None else f"{version(headed)} (dated in CHANGELOG.md)"
|
||||
|
||||
|
||||
def dated_headings(changelog: str | Failure) -> list[tuple[int, int, int]]:
|
||||
|
||||
Reference in New Issue
Block a user