openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgr...@apache.org
Subject [incubator-openwhisk-release] branch master updated: Tweak email content and subject. (#264)
Date Fri, 05 Apr 2019 14:30:11 GMT
This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 7504927  Tweak email content and subject. (#264)
7504927 is described below

commit 75049271d9653cf8cf62a73ff0df98edfc04b8f7
Author: rodric rabbah <rodric@gmail.com>
AuthorDate: Fri Apr 5 10:30:06 2019 -0400

    Tweak email content and subject. (#264)
---
 tools/gen-release-vote.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tools/gen-release-vote.py b/tools/gen-release-vote.py
index c399820..69a6d9d 100755
--- a/tools/gen-release-vote.py
+++ b/tools/gen-release-vote.py
@@ -91,12 +91,13 @@ def releaseVersion(config):
 def sendVoteEmail(mailConfig, rcConfig, dryrun, subjectLineId, signature):
     components = list(componentList(rcConfig))
     componentsString = ', '.join(map(lambda c: c.name, components))
+    componentCount = len(components)
     version = releaseVersion(rcConfig)
-    subject = '[VOTE] Release Apache OpenWhisk %s (v%s, %s)' % (subjectLineId if subjectLineId
else componentsString, version.v, version.rc)
+    subject = '[VOTE] Release Apache %s (v%s, %s)' % (subjectLineId if subjectLineId else
componentsString, version.v, version.rc)
     content = """Hi,
 
 This is a call to vote on releasing version {version} release
-candidate {rc} of the following {N} project modules with artifacts
+candidate {rc} of the following {N} with artifacts
 built from the Git repositories and commit IDs listed below.
 
 {githashes}
@@ -128,7 +129,7 @@ Release verification checklist for reference:
 This majority vote is open for at least 72 hours.
 {signature}""".format(version = version.v,
            rc = version.rc,
-           N = len(components),
+           N = ("%s project modules" % componentCount) if componentCount > 1 else "project
module",
            githashes = gitHashes(components),
            rcverifies = rcverify(components, version.v),
            signature = ("\n%s" % signature) if signature else "")


Mime
View raw message