Record that the loop reads no other mark of a cut release yet
CI / tests (pull_request) Successful in 1m55s
CI / tests (pull_request) Successful in 1m55s
This commit is contained in:
@@ -200,6 +200,7 @@ def next_release(found: list[Item], cut: LastCut) -> Upcoming | Cut | Unknown:
|
|||||||
|
|
||||||
def cut_version(cut: LastCut) -> Release | None:
|
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."""
|
"""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.
|
||||||
if cut.tag is None:
|
if cut.tag is None:
|
||||||
return dated_cut(cut.tag, cut.changelog) or BEFORE_FIRST_RELEASE
|
return dated_cut(cut.tag, cut.changelog) or BEFORE_FIRST_RELEASE
|
||||||
return tagged(cut.tag) if isinstance(cut.tag, str) else None
|
return tagged(cut.tag) if isinstance(cut.tag, str) else None
|
||||||
|
|||||||
Reference in New Issue
Block a user