meta: capture only up to first : when generating release notes

This commit is contained in:
K. Lange 2022-10-22 12:03:44 +09:00
parent 1a1c88a8b5
commit ff5a32de2a

View File

@ -1,7 +1,7 @@
#!/bin/bash
VERSION=$(git describe --exact-match --tags)
LAST=$(git describe --abbrev=0 --tags ${VERSION}^)
CHANGELOG=$(git log --pretty=format:%s ${LAST}..HEAD | grep ':' | sed -re 's/(.*)\:/- \`\1\`\:/' | sort)
CHANGELOG=$(git log --pretty=format:%s ${LAST}..HEAD | grep ':' | sed -re 's/([^:]*)\:/- \`\1\`\:/' | sort)
cat <<NOTES
# ToaruOS ${VERSION}