Skip to content

Commit

Permalink
Improve line break handling in release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed Aug 14, 2022
1 parent 7471995 commit 85f9a89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
template: |
## What's changed
replacers:
- search: '|||'
replace: '<br>'
## What's changed
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with urllib.request.urlopen(req_com) as f:
com = json.loads(f.read())
changes = "|||".join(["* {} ({})".format(next(iter(c["commit"]["message"].split("\n"))), c["sha"]) for c in com])
changes = "%0A".join(["* {} ({})".format(next(iter(c["commit"]["message"].split("\n"))), c["sha"]) for c in com[:-1]])
print(f"::set-output name=changes::{changes}")
print(f"Changes set to:\n{changes}")
# Drafts your next Release notes as Pull Requests are merged into "master"
Expand Down

0 comments on commit 85f9a89

Please sign in to comment.