Answer prose round 1: 0 🔴, 1 🟡 (0 misread); say the choice in one line
CI / tests (pull_request) Successful in 1m56s

This commit was merged in pull request #557.
This commit is contained in:
2026-11-16 01:44:30 +01:00
parent 2fdc75d035
commit 0681e9be17
+1 -1
View File
@@ -200,7 +200,7 @@ def next_release(found: list[Item], cut: LastCut) -> Upcoming | Cut | Unknown:
def cut_version(cut: LastCut) -> Release | None:
"""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."""
# These are the only marks of a cut the loop reads. Lilleman, 2026-11-16, asked whether to read others, such as another tag spelling or a Jira Fix Version marked released: "Don't add anything yet, we'll get back to this later." Add one only on his word.
# The loop reads no other mark of a cut, such as another tag spelling or a Jira Fix Version marked released, until lilleman says to add one: his call, 2026-11-16.
if cut.tag is None:
return dated_cut(cut.tag, cut.changelog) or BEFORE_FIRST_RELEASE
return tagged(cut.tag) if isinstance(cut.tag, str) else None