#!/usr/bin/env sh RELEASE=${GIT_TAG:-$1} if [ -z "${RELEASE}" ]; then echo "Usage:" echo "./scripts/release-notes.sh v0.1.0" exit 1 fi if ! git rev-list ${RELEASE} >/dev/null 2>&1; then echo "${RELEASE} does not exist" exit fi PREV_RELEASE=${PREV_RELEASE:-$(git describe --tags --abbrev=0 ${RELEASE}^)} PREV_RELEASE=${PREV_RELEASE:-$(git rev-list --max-parents=0 ${RELEASE}^)} NOTABLE_CHANGES=$(git cat-file -p ${RELEASE} | sed '/-----BEGIN PGP SIGNATURE-----/,//d' | tail -n +6) CHANGELOG=$(git log --no-merges --pretty=format:'- [%h] %s (%aN)' ${PREV_RELEASE}..${RELEASE}) if [ $? -ne 0 ]; then echo "Error creating changelog" exit 1 fi cat < ## Contributing You are kindly invited to provide contributions. If you find this image useful here's how you can help: - Send a Pull Request with your awesome new features and bug fixes - Be a part of the community and help resolve [issues](https://github.com/sameersbn/docker-gitlab/issues) - Support the development of this image with a [donation](http://www.damagehead.com/donate/) ## Changelog ${CHANGELOG} EOF