From b53bbe9c0183c65b3f76694d57ec34b28eb19add Mon Sep 17 00:00:00 2001 From: Colin Caine Date: Fri, 14 Jun 2019 12:14:59 +0100 Subject: [PATCH] script to thank contributors in changelog --- scripts/thanks | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/thanks diff --git a/scripts/thanks b/scripts/thanks new file mode 100755 index 00000000..b5c79e1a --- /dev/null +++ b/scripts/thanks @@ -0,0 +1,12 @@ +#!/bin/bash + +export LAST_VERSION="$1" + +allcontributors="$(git shortlog -sn $LAST_VERSION..HEAD | cut -c8- | awk '!seen[$0]++' | paste -sd "," - | sed 's/,/, /g')" +newcontributors="$(diff --changed-group-format='%<' --unchanged-group-format='' <(git shortlog -sn $LAST_VERSION..HEAD | cut -c8- | awk '!seen[$0]++'| sort) <(git shortlog -sn $LAST_VERSION | cut -c8- | awk '!seen[$0]++'| sort) | paste -sd "," - | sed 's/,/, /g')" + +echo "Thanks to all of our contributors for this release: $allcontributors" +echo +echo "Extra special thanks go to $newcontributors" +echo +echo Last, but not least - thank you to everyone who reported issues.