mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 00:52:55 +00:00
Merge pull request #2875 from etefera/bundled-release-notes
Generate release notes per module.
This commit is contained in:
@@ -34,6 +34,16 @@ echo "Remaining args: $remainingArgs"
|
|||||||
module=${fullTag%/*}
|
module=${fullTag%/*}
|
||||||
echo "module=$module"
|
echo "module=$module"
|
||||||
|
|
||||||
|
# Obtain most recent commit hash associated with the module.
|
||||||
|
lastCommitHash=$(
|
||||||
|
git log --tags=$module -1 --oneline --no-walk --pretty=format:%h)
|
||||||
|
|
||||||
|
# Generate the changelog for this release
|
||||||
|
# using commit hashes and commit messages.
|
||||||
|
cl=$(
|
||||||
|
git log $lastCommitHash.. --pretty=oneline \
|
||||||
|
--abbrev-commit --no-decorate --no-color -- $module)
|
||||||
|
|
||||||
# Take everything after the last slash.
|
# Take everything after the last slash.
|
||||||
# This should be something like "v1.2.3".
|
# This should be something like "v1.2.3".
|
||||||
semVer=`echo $fullTag | sed "s|$module/||"`
|
semVer=`echo $fullTag | sed "s|$module/||"`
|
||||||
@@ -111,4 +121,4 @@ EOF
|
|||||||
|
|
||||||
cat $configFile
|
cat $configFile
|
||||||
|
|
||||||
/bin/goreleaser release --config=$configFile --rm-dist --skip-validate $remainingArgs
|
/bin/goreleaser release --config=$configFile --rm-dist --skip-validate $remainingArgs --release-notes <"$cl"
|
||||||
|
|||||||
Reference in New Issue
Block a user