fix: Chart changelogs (#7151)

The app-changelog.md files that are generated by git-chglog are not
being constrained tightly enough to specific branches to present useful
changelogs.  For example, the plex-12.0.10..plex-12.0.11 changelog link
to GitHub points to the comparison between
plex-utills-3.0.9..plex-12.0.11.

Using -\d+\.\d+\.\d+ as the tag name suffix seems safe since the version
numbers are under this project's control.

Signed-off-by: Dan Christensen <opello@opello.org>
This commit is contained in:
Dan Christensen
2023-02-10 08:18:05 -06:00
committed by GitHub
parent 4b7fc6400a
commit 6afb793e1a

View File

@@ -14,7 +14,7 @@ if [[ -d "charts/${1}" ]]; then
rm -rf ${chart}/app-changelog.md || echo "changelog not found..."
echo "Generating changelogs for: ${chartname}"
# SCALE "Changelog" containing only last change
git-chglog --next-tag ${chartname}-${chartversion} --tag-filter-pattern ${chartname} --path ${chart} -o ${chart}/app-changelog.md ${chartname}-${chartversion} || echo "changelog generation failed..."
git-chglog --next-tag ${chartname}-${chartversion} --tag-filter-pattern "^${chartname}-\d+\.\d+\.\d+\$" --path ${chart} -o ${chart}/app-changelog.md ${chartname}-${chartversion} || echo "changelog generation failed..."
else
echo "Chart 'charts/${1}' no longer exists in repo. Skipping it..."
fi