We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b6958f commit a549404Copy full SHA for a549404
scripts/check_version_in_changelog.py
@@ -15,9 +15,10 @@
15
16
with open(CHANGELOG_PATH, encoding='utf-8') as changelog_file:
17
for line in changelog_file:
18
- # The heading for the changelog entry for the given version can start with either the version number,
19
- # or the version number in a link
20
- if re.match(rf'(## )\[?{current_package_version}([\] ]|$)', line):
+ # Ensure that the heading in the changelog entry for the specified version includes a version number
+ # enclosed in square brackets. This version number is formatted as a link to the corresponding
+ # version tag on GitHub.
21
+ if re.match(rf'## \[{current_package_version}\].*$', line):
22
break
23
else:
24
raise RuntimeError(
0 commit comments