mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #3252 from runewake2/notes
Update release notes generation
This commit is contained in:
@@ -34,15 +34,13 @@ echo "Remaining args: $remainingArgs"
|
|||||||
module=${fullTag%/*}
|
module=${fullTag%/*}
|
||||||
echo "module=$module"
|
echo "module=$module"
|
||||||
|
|
||||||
# Obtain most recent commit hash associated with the module.
|
# Find previous tag that matches the tags module
|
||||||
lastCommitHash=$(
|
prevTag=$(git tag -l "$module*" --sort=-version:refname --no-contains=$fullTag | head -n 1)
|
||||||
git log --tags=$module -1 \
|
|
||||||
--oneline --no-walk --pretty=format:%h)
|
|
||||||
|
|
||||||
# Generate the changelog for this release
|
# Generate the changelog for this release
|
||||||
# using commit hashes and commit messages.
|
# using the last two tags for the module
|
||||||
changeLogFile=$(mktemp)
|
changeLogFile=$(mktemp)
|
||||||
git log $lastCommitHash.. \
|
git log $prevTag..$fullTag \
|
||||||
--pretty=oneline \
|
--pretty=oneline \
|
||||||
--abbrev-commit --no-decorate --no-color --no-merges \
|
--abbrev-commit --no-decorate --no-color --no-merges \
|
||||||
-- $module > $changeLogFile
|
-- $module > $changeLogFile
|
||||||
|
|||||||
Reference in New Issue
Block a user