From ee5301261095bb1b9520ab787f030a4267b4a839 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Fri, 15 Dec 2023 18:44:26 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Henry Mercer --- .github/update-release-branch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index b518cddf8..c97cb4140 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -177,7 +177,7 @@ def get_today_string(): def process_changelog_for_backports(source_branch_major_version, target_branch_major_version): - # changelog entries use a speficic format to indicate + # changelog entries can use the following format to indicate # that they only apply to newer versions regex = re.compile(r'\[v(\d+)\+ only\]') @@ -216,7 +216,7 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m # we have found two headings in a row, so we need to add the placeholder message. output += 'No user facing changes.\n' found_content = False - output += '\n' +line + '\n\n' + output += f'\n{line}\n\n' else: if line.strip() != '': found_content = True