Skip to content

Commit 54f5c6a

Browse files
committed
Versions are 2nd level headings in changelog
1 parent 1ade4e4 commit 54f5c6a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Changelog
22

3-
[1.0.2](../../releases/tag/v1.0.2) - 2023-08-02
3+
## [1.0.2](../../releases/tag/v1.0.2) - 2023-08-02
44

55
- Added the `ActorEnvVars` enum and new tests.
66
- Added the `flake8-simplify` package and simplified some code.
77

8-
[1.0.1](../../releases/tag/v1.0.1) - 2023-08-01
8+
## [1.0.1](../../releases/tag/v1.0.1) - 2023-08-01
99

10-
Added the `ignore_docs` decorator to all internal utilities.
10+
- Added the `ignore_docs` decorator to all internal utilities.
1111

12-
[1.0.0](../../releases/tag/v1.0.0) - 2023-07-25
12+
## [1.0.0](../../releases/tag/v1.0.0) - 2023-07-25
1313

14-
Initial release of the package.
14+
- Initial release of the package.

scripts/check_version_in_changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
with open(CHANGELOG_PATH, encoding='utf-8') as changelog_file:
1717
for line in changelog_file:
1818
# The heading for the changelog entry for the given version can start with either the version number, or the version number in a link
19-
if re.match(fr'\[?{current_package_version}([\] ]|$)', line):
19+
if re.match(fr'(## )\[?{current_package_version}([\] ]|$)', line):
2020
break
2121
else:
2222
raise RuntimeError(f'There is no entry in the changelog for the current package version ({current_package_version})')

0 commit comments

Comments
 (0)