From 85f9a89f694c7a324a704807e80d9b25bd132cde Mon Sep 17 00:00:00 2001 From: rikroe Date: Sun, 14 Aug 2022 15:30:52 +0200 Subject: [PATCH] Improve line break handling in release drafter --- .github/release-drafter.yml | 5 +---- .github/workflows/release-drafter.yml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index b0539ad..9ba41ec 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,5 +1,2 @@ template: | - ## What's changed -replacers: - - search: '|||' - replace: '
' \ No newline at end of file + ## What's changed \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 65305a6..b3dcc13 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -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"