Skip to content

Commit

Permalink
Update tasks.py formatting of desc.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Aug 9, 2024
1 parent 1ac6c68 commit 1bfd330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def release_github(ctx: Context, version: str) -> None:
"""
with open("docs/CHANGES.md", encoding="utf-8") as file:
contents = file.read()
tokens = re.split(r"\-+", contents)
tokens = re.split(r"\n\#\#\s", contents)
desc = tokens[1].strip()
tokens = desc.split("\n")
desc = "\n".join(tokens[:-1]).strip()
desc = "\n".join(tokens[1:]).strip()
payload = {
"tag_name": f"v{version}",
"target_commitish": "master",
Expand Down

0 comments on commit 1bfd330

Please sign in to comment.