Files
kubevpn/.github/release-note.sh
2022-05-05 16:10:08 +08:00

17 lines
492 B
Bash
Executable File

#!/usr/bin/env bash
RELEASE=${RELEASE:-$2}
PREVIOUS_RELEASE=${PREVIOUS_RELEASE:-$1}
# ref https://stackoverflow.com/questions/1441010/the-shortest-possible-output-from-git-log-containing-author-and-date
CHANGELOG=$(git log --no-merges --date=short --pretty=format:'- %h %an %ad %s' "${PREVIOUS_RELEASE}".."${RELEASE}")
cat <<EOF
## ${RELEASE}
KubeVPN ${RELEASE} is available now !
## Installation and Upgrading
You can download binary file to use it directly
## Changelog
${CHANGELOG}
EOF