Merge "Fix announce email paths"

This commit is contained in:
Zuul 2019-03-27 11:00:33 +00:00 committed by Gerrit Code Review
commit e1b557915a
2 changed files with 4 additions and 11 deletions

View File

@ -164,11 +164,11 @@ encouraged to test and validate this tarball!
Alternatively, you can directly test the stable/{{series|lower}} release Alternatively, you can directly test the stable/{{series|lower}} release
branch at: branch at:
https://git.openstack.org/cgit/openstack/{{project}}/log/?h=stable/{{series|lower}} https://git.openstack.org/cgit/openstack/{{publishing_dir_name}}/log/?h=stable/{{series|lower}}
Release notes for {{project}} can be found at: Release notes for {{project}} can be found at:
https://docs.openstack.org/releasenotes/{{project}}/ https://docs.openstack.org/releasenotes/{{publishing_dir_name}}/
{% if bug_url -%} {% if bug_url -%}
If you find an issue that could be considered release-critical, please If you find an issue that could be considered release-critical, please

View File

@ -49,7 +49,8 @@ fi
# of better information for the real repository name. # of better information for the real repository name.
REMOTE_URL=$(cd $REPODIR && git config --get remote.origin.url || echo "") REMOTE_URL=$(cd $REPODIR && git config --get remote.origin.url || echo "")
if [ ! -z "$REMOTE_URL" ]; then if [ ! -z "$REMOTE_URL" ]; then
SHORTNAME=$(basename $REMOTE_URL) # Make sure .git extensions are not included
SHORTNAME=$(basename $REMOTE_URL .git)
REPOORGNAME=$(basename $(dirname $REMOTE_URL)) REPOORGNAME=$(basename $(dirname $REMOTE_URL))
else else
# WARNING(dhellmann): This formulation only works in CI where the # WARNING(dhellmann): This formulation only works in CI where the
@ -159,13 +160,6 @@ if [[ $FIRST_FULL = "yes" ]]; then
stable="" stable=""
fi fi
# Set up email tags for the project owner.
PROJECT_OWNER=${PROJECT_OWNER:-$(get-repo-owner \
--email-tag $REPOORGNAME/$SHORTNAME || echo "")}
if [[ "$PROJECT_OWNER" != "" ]]; then
email_tags="--email-tags ${PROJECT_OWNER}"
fi
# Only include the PyPI link if we are told to. # Only include the PyPI link if we are told to.
INCLUDE_PYPI_LINK=$(get_tag_meta pypi) INCLUDE_PYPI_LINK=$(get_tag_meta pypi)
if [[ "$INCLUDE_PYPI_LINK" == "yes" ]]; then if [[ "$INCLUDE_PYPI_LINK" == "yes" ]]; then
@ -202,7 +196,6 @@ echo
echo "Generating email body in $relnotes_file" echo "Generating email body in $relnotes_file"
release-notes \ release-notes \
--email \ --email \
$email_tags \
--series "$SERIES" \ --series "$SERIES" \
$stable \ $stable \
$first_release \ $first_release \