From a7ab3f375e587feea79a14dde039393313d9de19 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Sat, 27 Dec 2025 14:31:41 +0100 Subject: [PATCH] Release notes newline fix (#6492) * Refactor: Remove trailing newline from release notes file Co-authored-by: matiss * Fix template string for release notes summary * Add release notes for PR #6492 * [autofix.ci] apply automated fixes * Add finishing_touches section to config --------- Co-authored-by: Cursor Agent Co-authored-by: github-actions[bot] Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .coderabbit.yaml | 3 +++ .../ai-generated-release-notes/create-release-notes-file.js | 5 +++-- upcoming-release-notes/6492.md | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/6492.md diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 5c3cc4ca70..d52c9c23ec 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -3,3 +3,6 @@ issue_enrichment: enabled: false reviews: review_status: false + finishing_touches: + docstrings: + enabled: false diff --git a/.github/actions/ai-generated-release-notes/create-release-notes-file.js b/.github/actions/ai-generated-release-notes/create-release-notes-file.js index c902f375fd..aba3bc840b 100755 --- a/.github/actions/ai-generated-release-notes/create-release-notes-file.js +++ b/.github/actions/ai-generated-release-notes/create-release-notes-file.js @@ -46,7 +46,8 @@ category: ${cleanCategory} authors: [${summaryData.author}] --- -${summaryData.summary}`; +${summaryData.summary} +`; const fileName = `upcoming-release-notes/${summaryData.prNumber}.md`; @@ -75,7 +76,7 @@ ${summaryData.summary}`; repo: headRepo, path: fileName, message: `Add release notes for PR #${summaryData.prNumber}`, - content: Buffer.from(`${fileContent}\n\n`).toString('base64'), + content: Buffer.from(fileContent).toString('base64'), branch: prBranch, committer: { name: 'github-actions[bot]', diff --git a/upcoming-release-notes/6492.md b/upcoming-release-notes/6492.md new file mode 100644 index 0000000000..03bfb333fe --- /dev/null +++ b/upcoming-release-notes/6492.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +Fix release notes formatting by adjusting newlines to prevent extra whitespace in API payload.