Redact contributor email addresses from the release notes.

Fixes https://github.com/bazelbuild/continuous-integration/issues/390

Closes #6763.

PiperOrigin-RevId: 222862180
diff --git a/scripts/release/relnotes.sh b/scripts/release/relnotes.sh
index 6557cef..cacd4ba 100755
--- a/scripts/release/relnotes.sh
+++ b/scripts/release/relnotes.sh
@@ -143,10 +143,19 @@
   done
 
   # Add a list of contributors to thank.
+  # Stages:
+  #   1. Get the list of authors from the last release til now, both name and
+  #     email.
+  #   2. Sort and uniqify.
+  #   3. Remove googlers. (This is why the email is needed)
+  #   4. Cut the email address, leaving only the name.
+  #   5-n. Remove trailing spaces and newlines, substituting with a comman and a
+  #     space, removing any trailing spaces again.
   local external_authors=$(git log $last_release..HEAD --format="%aN <%aE>" \
     | sort \
     | uniq \
     | grep -v "google.com" \
+    | cut -d'<' -f 1 \
     | sed -e 's/[[:space:]]$//' \
     | tr '\n' ',' \
     | sed -e 's/,$/\n/' \