From 6bdff09a5c41a58ebecc38ff23d664559040aed1 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Wed, 13 Nov 2013 13:23:17 -0500 Subject: [PATCH] Removed old release script --- scripts/release-email-list.sh | 48 ----------------------------------- 1 file changed, 48 deletions(-) delete mode 100755 scripts/release-email-list.sh diff --git a/scripts/release-email-list.sh b/scripts/release-email-list.sh deleted file mode 100755 index d677fcb8ed..0000000000 --- a/scripts/release-email-list.sh +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/bash -# Usage: release-email-list.sh [$PREVIOUS_COMMIT [$CURRENT_COMMIT]] -# -# Prints a list of email addresses and a Confluence style wiki table -# that indicate all of the changes made between $PREVIOUS_COMMIT and $CURRENT_COMMIT -# -# PREVIOUS_COMMIT defaults to origin/release -# CURRENT_COMMIT defaults to HEAD - -BASE=${1:-origin/release} -CURRENT=${2:-HEAD} -LOG_CMD="git --no-pager log $BASE..$CURRENT" - -RESPONSIBLE=$(sort -u <($LOG_CMD --format='tformat:%ae' && $LOG_CMD --format='tformat:%ce')) - -echo "Comparing $BASE to $CURRENT" - -echo "~~~~ Email ~~~~~" - -echo -n 'To: ' -echo ${RESPONSIBLE} | sed "s/ /, /g" -echo - -echo "You've made changes that are about to be released. All of the commits -that you either authored or committed are listed below. Please verify them on -\$ENVIRONMENT. - -Please record your notes on https://edx-wiki.atlassian.net/wiki/display/ENG/Release+Page%3A+\$DATE -and add any bugs found to the Release Candidate Bugs section" -echo - -echo "~~~~~ Wiki Table ~~~~~" -echo "Type Ctrl+Shift+D on Confluence to embed the following table in your release wiki page" -echo - -echo '||Author||Changes||Commit Link||Testing Notes||' - -for EMAIL in $RESPONSIBLE; do - AUTHORED_BY=$($LOG_CMD --author="<${EMAIL}>" --format='tformat:%h') - COMMITTED_BY=$($LOG_CMD --committer="<${EMAIL}>" --format='tformat:%h') - ALL_COMMITS=$(for HASH in $AUTHORED_BY $COMMITTED_BY; do echo $HASH; done | sort | uniq) - - EMAIL_COL="$EMAIL" - for HASH in $ALL_COMMITS; do - git --no-pager log --format="tformat:|$EMAIL_COL|%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |" -n 1 $HASH - EMAIL_COL=" " - done -done