There was an error while loading. Please reload this page.
1 parent 868aec3 commit 7d75e55Copy full SHA for 7d75e55
1 file changed
.dev/lint-release-notes.py
@@ -64,7 +64,7 @@ def check_version_format(version_str: str) -> Version:
64
def check_highlights(path: Path, version: Version) -> None:
65
if version.maintenance == 0:
66
content = path.read_text(encoding="utf-8")
67
- if not re.search(r"## .*Highlights\b", content, re.MULTILINE):
+ if not re.search(r"^#?## .*Highlights\b", content, re.MULTILINE):
68
raise ValueError(
69
"major/minor release is missing a highlights heading. Add: ## Highlights"
70
)
0 commit comments