List all projects in submitrequest message
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 1 Jul 2014 13:05:19 +0000 (16:05 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 2 Jul 2014 15:13:22 +0000 (18:13 +0300)
There are multiple gerrit projects in case of group submissions. We need
to list all of them in the SR message.

TODO: list all commits, too

Change-Id: Icc896389920f4ccf942cdbdd7a70fed21d9ed997
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
repa/common.py

index a3912cb106908d551d62bccb3ce023be42cbafbf..0bd6ffdda99691e0164532a9821f7bb730bd5fbd 100644 (file)
@@ -89,13 +89,14 @@ def accept_or_reject(obs, submission, state, target, comment=''):
 
         commit = meta.get('git_commit') or meta['git_tag']
         submitter = meta.get('submitter')
+        projects = '[' + ', '.join(meta['projects']) + ']'
         message = ''
         if submitter:
             message = "Submitter: %s\n" % submitter
 
         message += "Comments: %s \nGit project: %s\nTag: %s\nCommit: %s" \
             % (comment or "submission %s" % str(name),
-              meta['projects'][0],
+              projects,
               meta['git_tag'],
               commit)