Commit 1b6f81b0 by Calen Pennington

Merge pull request #408 from edx/cale/make-release-email-script-wiki-friendly

Make release email script wiki-friendly
parents 6c3de222 3d1188b1
......@@ -4,27 +4,36 @@ LOG_CMD="git --no-pager log $1..$2"
RESPONSIBLE=$(sort -u <($LOG_CMD --format='tformat:%ae' && $LOG_CMD --format='tformat:%ce'))
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"
\$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}>"
COMMITTED_BY="$LOG_CMD --committer=<${EMAIL}>"
COMMITTED_NOT_AUTHORED="$COMMITTED_BY $($AUTHORED_BY --format='tformat:^%h')"
echo $EMAIL "authored the following commits:"
$AUTHORED_BY --format='tformat: %s - https://github.com/edx/edx-platform/commit/%h'
echo
$AUTHORED_BY --format="tformat:|$EMAIL|%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |" | head -n 1
$AUTHORED_BY --format="tformat:| |%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |" | tail -n +2
if [[ $($COMMITTED_NOT_AUTHORED) != "" ]]; then
echo $EMAIL "committed but didn't author the following commits:"
$COMMITTED_NOT_AUTHORED --format='tformat: %s - https://github.com/edx/edx-platform/commit/%h'
echo
$COMMITTED_NOT_AUTHORED --format="tformat:|$EMAIL|%s|[commit|https://github.com/edx/edx-platform/commit/%h]|Committed, didn't author|" | head -n 1
$COMMITTED_NOT_AUTHORED --format="tformat:| |%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |" | tail -n +2
fi
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment