From ea9a3cf53f4e399c39a12270ff3b64c63dfecb69 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 1 Jul 2014 16:05:19 +0300 Subject: [PATCH] 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 --- repa/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.34.1