Skip to content

Commit

Permalink
Update regex formula of auto changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 authored Nov 9, 2024
1 parent f1e416e commit 83943f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/_Starlight/update_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

def parse_changelog(pr_body):
changelog_entries = []
pattern = r":cl: ([^\n]+)\n- (add|remove|tweak|fix): ([^\n]+)"
pattern = r":cl: ([^\n]+)\n((?:- (add|remove|tweak|fix): [^\n]+\n?)+)"
matches = list(re.finditer(pattern, pr_body, re.MULTILINE))
print(f"Found {len(matches)} matches with pattern.")

Expand Down Expand Up @@ -93,4 +93,4 @@ def update_changelog():
return

if __name__ == "__main__":
update_changelog()
update_changelog()

0 comments on commit 83943f2

Please sign in to comment.