diff --git a/devscripts/commands/release.py b/devscripts/commands/release.py index 9a5be0ba8..d688f7048 100644 --- a/devscripts/commands/release.py +++ b/devscripts/commands/release.py @@ -72,9 +72,9 @@ def _validate_changelog(self, release: str) -> None: with open(path, encoding="utf-8") as stream: changelog = stream.read() changelog_header = changelog.splitlines(keepends=True)[:3] - expected = f"""################### + expected = f"""################## {release} ({date.today().strftime('%Y-%m-%d')}) -###################\n""".splitlines(keepends=True) +##################\n""".splitlines(keepends=True) if changelog_header != expected: diff = difflib.unified_diff(changelog_header, expected, fromfile=str(path), tofile="expected") raise CommandError(f"ChangeLog has improper header:\n\n{''.join(diff)}")