From: Markus Lehtonen Date: Tue, 1 Jul 2014 13:05:19 +0000 (+0300) Subject: List all projects in submitrequest message X-Git-Tag: 0.3~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea9a3cf53f4e399c39a12270ff3b64c63dfecb69;p=tools%2Frepa.git List all projects in submitrequest message 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 --- diff --git a/repa/common.py b/repa/common.py index a3912cb..0bd6ffd 100644 --- a/repa/common.py +++ b/repa/common.py @@ -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)