Put greekeeper changelog in a separate block

This commit is contained in:
Guillaume Beraudo
2017-08-23 08:07:36 +02:00
parent 3b39ca350c
commit b4ffc8cf75

View File

@@ -44,20 +44,27 @@ main() {
git log --first-parent --format='%aN|%s %b' ${1} |
{
while read l; do
if ! [[ ${l} =~ "openlayers/greenkeeper" ]] ; then
if [[ ${l} =~ ${MERGE_RE} ]] ; then
number="${BASH_REMATCH[1]}"
author="${BASH_REMATCH[2]}"
summary="${BASH_REMATCH[3]}"
echo " * [#${number}](${PULLS_URL}/${number}) - ${summary} ([@${author}](${GITHUB_URL}/${author}))"
elif [[ ${l} =~ ${SQUASH_RE} ]] ; then
number="${BASH_REMATCH[3]}"
author="${BASH_REMATCH[1]}"
summary="${BASH_REMATCH[2]}"
echo " * [#${number}](${PULLS_URL}/${number}) - ${summary} ([${author}](${GITHUB_URL}/search?q=${author}&type=Users))"
fi
output="`[[ ${l} =~ "openlayers/greenkeeper" ]] && echo greenkeeper || echo main`_output"
if [[ ${l} =~ ${MERGE_RE} ]] ; then
number="${BASH_REMATCH[1]}"
author="${BASH_REMATCH[2]}"
summary="${BASH_REMATCH[3]}"
declare $output+=" * [#${number}](${PULLS_URL}/${number}) - ${summary} ([@${author}](${GITHUB_URL}/${author}))\n"
elif [[ ${l} =~ ${SQUASH_RE} ]] ; then
number="${BASH_REMATCH[3]}"
author="${BASH_REMATCH[1]}"
summary="${BASH_REMATCH[2]}"
declare $output+=" * [#${number}](${PULLS_URL}/${number}) - ${summary} ([${author}](${GITHUB_URL}/search?q=${author}&type=Users))\n"
fi
done
echo -e "$main_output"
if [ -n "$greenkeeper_output" ]; then
echo
echo "Additionally a number of updates where made to our dependencies:"
echo -e "$greenkeeper_output"
fi
}
}