Skip to content

Commit

Permalink
Only show changes related to the specific chart in release PR descrip…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
  • Loading branch information
marcofranssen committed Nov 10, 2023
1 parent 821ca12 commit a1c9205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand All @@ -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
Expand Down

0 comments on commit a1c9205

Please sign in to comment.