Skip to content

Commit

Permalink
Merge pull request #932 from sirosen/update-changelog-script
Browse files Browse the repository at this point in the history
Improve changelog script to support post and pre
  • Loading branch information
sirosen authored Jan 16, 2024
2 parents 0a655d2 + 09af903 commit d8a44b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/changelog2md.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
REPO_ROOT = pathlib.Path(__file__).parent.parent
CHANGELOG_PATH = REPO_ROOT / "changelog.rst"

CHANGELOG_ANCHOR_PATTERN = re.compile(r"^\.\. _changelog-\d+\.\d+\.\d+:$", re.MULTILINE)
CHANGELOG_ANCHOR_PATTERN = re.compile(
r"^\.\. _changelog-\d+\.\d+\.\d+(?:\.?(?:post|a|b|dev)\d+)?:$", re.MULTILINE
)
CHANGELOG_HEADER_PATTERN = re.compile(r"^v(\d+\.\d+\.\d+).*$", re.MULTILINE)

H2_RST_PATTERN = re.compile(r"-+")
Expand Down

0 comments on commit d8a44b1

Please sign in to comment.