From f8a04adc622b2541d5e117056291cf18bb81be8a Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Tue, 16 Jul 2024 08:31:52 -0700 Subject: [PATCH] WIP improved release notes automation --- .github/workflows/config/release-notes.json | 6 ++++++ .github/workflows/release-notes.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/config/release-notes.json b/.github/workflows/config/release-notes.json index eee182a77e7..a06df5a993d 100644 --- a/.github/workflows/config/release-notes.json +++ b/.github/workflows/config/release-notes.json @@ -51,6 +51,12 @@ "template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n", "pr_template": "- ${{TITLE}} (by @${{AUTHOR}} in ${{URL}})${{RELEASE_NOTES}}", "empty_template": "- no changes", + "reference": { + "pattern": "This is an automatic backport of pull request #(\d+)", + "on_property": "body", + "method": "replace", + "target": "$1" + }, "transformers": [ { "pattern": "", diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 26676bba4e2..5f13c53ed14 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - name: Build Release Notes id: release-notes - uses: mikepenz/release-changelog-builder-action@v4.1.1 + uses: mikepenz/release-changelog-builder-action@v4.2.2 with: configuration: .github/workflows/config/release-notes.json failOnError: true