Answer architecture round 3: 0 🔴, 2 🟡 (0 misread); a record write names its version, even None, in every backend, and the unreleased section is read through markdown_text.section by one title pattern
This commit is contained in:
+3
-2
@@ -10,8 +10,9 @@ VERSION = r"[0-9]+\.[0-9]+\.[0-9]+"
|
||||
DATE_DIGITS = (4, 2, 2)
|
||||
DATED = re.compile(rf"({VERSION}) - " + "-".join(f"[0-9]{{{digits}}}" for digits in DATE_DIGITS))
|
||||
TAG = re.compile(rf"v({VERSION})")
|
||||
# The heading of CHANGELOG.md's section for news not yet released: ## Unreleased, or a heading that says unreleased, such as `## 0.6.0 (unreleased)`, as a project's own changelog may head it.
|
||||
UNRELEASED_HEADING = re.compile(r"^## .*unreleased.*$", re.M | re.I)
|
||||
# The title of CHANGELOG.md's section for news not yet released: Unreleased, or a title that says unreleased, such as `0.6.0 (unreleased)`, as a project's own changelog may head it; and its ## heading.
|
||||
UNRELEASED_TITLE = r"(?i:.*unreleased.*)"
|
||||
UNRELEASED_HEADING = re.compile(rf"^## {UNRELEASED_TITLE}$", re.M)
|
||||
|
||||
|
||||
def release_of(version: str) -> Release:
|
||||
|
||||
Reference in New Issue
Block a user