Skip to content

Commit 1bfd330

Browse files
committed
Update tasks.py formatting of desc.
1 parent 1ac6c68 commit 1bfd330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ def release_github(ctx: Context, version: str) -> None:
118118
"""
119119
with open("docs/CHANGES.md", encoding="utf-8") as file:
120120
contents = file.read()
121-
tokens = re.split(r"\-+", contents)
121+
tokens = re.split(r"\n\#\#\s", contents)
122122
desc = tokens[1].strip()
123123
tokens = desc.split("\n")
124-
desc = "\n".join(tokens[:-1]).strip()
124+
desc = "\n".join(tokens[1:]).strip()
125125
payload = {
126126
"tag_name": f"v{version}",
127127
"target_commitish": "master",

0 commit comments

Comments
 (0)