From 846748dba8242f559c521c22d5a20f1fe40dce30 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Mon, 14 Aug 2023 09:35:53 -0500 Subject: [PATCH] fix(changelog): Fix Renovate changelogs to support semantic commits --- .github/workflows/renovate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index a85138183..dd9806226 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -48,7 +48,7 @@ jobs: CHANGELOG_APPEND: ${{ contains(steps.pr.outputs.labels, 'changelog-append') }} run: | set -eux - export DESCRIPTION="$(sed 's/^:.*: //' <<<"$TITLE")" + export DESCRIPTION="$(perl -pe 's/^.+?: (.)/\U$1/' <<<"$TITLE")" CHANGELOG="$(yq -o json '[{"kind": "changed", "description": strenv(DESCRIPTION)}]')" UPDATE_TYPE=replace if [[ "$CHANGELOG_APPEND" == "true" ]]; then