From a1c92054242f0279b7e060f880bc65cad7c29698 Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Fri, 10 Nov 2023 13:43:00 +0100 Subject: [PATCH] Only show changes related to the specific chart in release PR description Signed-off-by: Marco Franssen --- release-chart.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release-chart.sh b/release-chart.sh index ee856cd..1369567 100755 --- a/release-chart.sh +++ b/release-chart.sh @@ -6,7 +6,7 @@ ## ## Usage example(s): ## -## ./__PROG__ --chart spire --current-version 0.3.0 --new-version 0.4.0 +## ./__PROG__ --chart spire --current-version 0.15.1 --new-version 0.16.0 ## ## Options: ## --help Show this help message @@ -105,7 +105,7 @@ branch_name="bump-${chart}-version" git checkout main git pull git checkout --track -B "${branch_name}" main -commits_since_previous_release="$(git log "${chart}-${current_version}..HEAD" --pretty=format:'* %h %s')" +commits_since_previous_release="$(git log "${chart}-${current_version}..HEAD" --pretty=format:'* %h %s' "charts/${chart}")" "${SED}" -i "s/version: ${current_version}/version: ${new_version}/" "charts/${chart}/Chart.yaml" "${SED}" -i "s/${current_version}/${new_version}/" "charts/${chart}/README.md" git add "charts/${chart}/"{Chart.yaml,README.md} @@ -129,7 +129,7 @@ Please review the below changelog to ensure this matches up with the semantic ve > git push > \`\`\` -**Changes in this release** +## Changes in this release ${commits_since_previous_release} EOF