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:
2
.github/scripts/changelog.sh
vendored
2
.github/scripts/changelog.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user