Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jan 9, 2025
1 parent 8592854 commit 8cde186
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@ jobs:
if match:
releasenotes = match.group(1)
else:
releasenotes = "Bug fixes and performance improvements."
releasenotes = "What's Changed section not found."
# Remove all Markdown formatting (optional, customize as needed)
# Remove all Markdown formatting
releasenotes = re.sub(r'^#+\s*', '', releasenotes, flags=re.MULTILINE) # Remove all headers
releasenotes = re.sub(r'\*\*|__|\*|_', '', releasenotes) # Remove bold, italics, etc.
releasenotes = re.sub(r'\[(.*?)\]\((.*?)\)', r'\1', releasenotes) # Remove links but keep text
releasenotes = re.sub(r'https://github\.com/[^/]+/[^/]+/pull/(\d+)', r'#\1', releasenotes) # Shorten pull request URLs
# Replace list items "*" with "-"
releasenotes = re.sub(r'^\s*\*\s+', '- ', releasenotes, flags=re.MULTILINE)
# Remove excess blank lines
releasenotes = re.sub(r'\n\s*\n', '\n', releasenotes).strip()
Expand Down

0 comments on commit 8cde186

Please sign in to comment.