[skip e2e] Add comment for get_author_email.sh (#14257)

Signed-off-by: Jenny Li <jing.li@zilliz.com>
pull/14324/head
Jenny Li 2021-12-27 15:01:08 +08:00 committed by GitHub
parent baae7b583d
commit e2cf0352db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
set -e
function get_author_email(){
email=$(git --no-pager show -s --format=\'%ae\' HEAD )
# Get last commit author when Jenkins submit a merge commit
if [[ "${email}" == \'nobody@nowhere\' ]]; then
email=$(git --no-pager show -s --format=\'%ae\' HEAD^ )
fi