Skip to content

Commit

Permalink
Update tasks to match new CHANGELOG format
Browse files Browse the repository at this point in the history
  • Loading branch information
utf committed Jan 26, 2020
1 parent 1924a6e commit 3f894ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""
Deployment file to facilitate releases of sumo.
Note that this file is meant to be run from the root directory of the repo.
"""
Expand Down Expand Up @@ -27,9 +28,9 @@ def release(ctx):
with open("CHANGELOG.rst") as f:
contents = f.read()
new_ver = re.findall('\n(v.*)', contents)[0]
toks = re.finditer("v\d\.\d\.\d*\n\-*(.*?)^v\d\.\d\.\d", contents,
toks = re.finditer("------\n*(.*?)^\`\[v\d\.\d\.\d", contents,
re.MULTILINE | re.DOTALL)
desc = list(toks)[0].groups()[0].strip()
desc = list(toks)[1].groups()[0].strip()
payload = {
"tag_name": new_ver,
"target_commitish": "master",
Expand Down

0 comments on commit 3f894ff

Please sign in to comment.