From b00b22a149964730f570e294f57c7bd5f9a1b1cb Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Fri, 19 Jan 2024 16:06:26 -0800 Subject: [PATCH] Enhance release notes automation (#3751) * Bump versions * It now tabs every line included in the Release Notes section of the PR template --- .github/workflows/config/release-notes.json | 14 ++++++++++++-- .github/workflows/release-notes.yml | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/config/release-notes.json b/.github/workflows/config/release-notes.json index bf1747f5ccd..eee182a77e7 100644 --- a/.github/workflows/config/release-notes.json +++ b/.github/workflows/config/release-notes.json @@ -56,6 +56,16 @@ "pattern": "", "flags": "gus", "target": "" + }, + { + "pattern": "\n\\s*\n", + "flags": "gu", + "target": "\n" + }, + { + "pattern": "\n", + "flags": "gu", + "target": "\n " } ], "custom_placeholders": [ @@ -65,12 +75,12 @@ "transformer": { "pattern": ".*#### Release Notes(?:[\n\\s]|(?:))*((?:\\S(?!!--)).*?)[\n\\s]*\n#.*", "flags": "gus", - "target": "\n $1" + "target": "\n$1" } } ], "trim_values": false, "max_tags_to_fetch": 200, - "max_pull_requests": 500, + "max_pull_requests": 1000, "max_back_track_time_days": 365 } diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 6459664a6e6..f3bac67dbaa 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -22,10 +22,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build Release Notes id: release-notes - uses: mikepenz/release-changelog-builder-action@v3.7.0 + uses: mikepenz/release-changelog-builder-action@v4.1.1 with: configuration: .github/workflows/config/release-notes.json failOnError: true