From 80a1461e7d190d5371ed9632ee791689bc2d92cd Mon Sep 17 00:00:00 2001 From: Twenty Panda Date: Tue, 23 Jul 2024 13:51:32 +0200 Subject: [PATCH] fix(release-notes-assistant): upgrade to always insert a newline * if it will not render well, it needs to be separated by a newline * do not use ? in sed -E, it is not the same as with JavaScript --- .forgejo/workflows/release-notes-assistant.yml | 2 +- .release-notes-assistant.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/release-notes-assistant.yml b/.forgejo/workflows/release-notes-assistant.yml index 98dd8dac27..81e63238b2 100644 --- a/.forgejo/workflows/release-notes-assistant.yml +++ b/.forgejo/workflows/release-notes-assistant.yml @@ -28,4 +28,4 @@ jobs: - name: release-notes-assistant preview run: | - go run code.forgejo.org/forgejo/release-notes-assistant@v1.0.0 --config .release-notes-assistant.yaml --storage pr --storage-location ${{ github.event.pull_request.number }} --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token ${{ secrets.RELEASE_NOTES_ASSISTANT_TOKEN }} preview ${{ github.event.pull_request.number }} + go run code.forgejo.org/forgejo/release-notes-assistant@v1.0.1 --config .release-notes-assistant.yaml --storage pr --storage-location ${{ github.event.pull_request.number }} --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token ${{ secrets.RELEASE_NOTES_ASSISTANT_TOKEN }} preview ${{ github.event.pull_request.number }} diff --git a/.release-notes-assistant.yaml b/.release-notes-assistant.yaml index 97b12a9430..bd16aa0010 100644 --- a/.release-notes-assistant.yaml +++ b/.release-notes-assistant.yaml @@ -7,7 +7,7 @@ branch-from-version: 'v%[1]d.%[2]d/forgejo' tag-from-version: 'v%[1]d.%[2]d.%[3]d' branch-known: - 'v7.0/forgejo' -cleanup-line: 'sed -Ee "s/^(feat|fix).*?:\s*//g" -e "s;\[(UI|BUG|FEAT|v.*?/forgejo)\]\s*;;g"' +cleanup-line: 'sed -Ee "s/^(feat|fix):\s*//g" -e "s;\[(UI|BUG|FEAT|v.*?/forgejo)\]\s*;;g"' render-header: | ## Draft release notes