aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2020-02-17 08:56:32 +0100
committerThierry Reding <treding@nvidia.com>2020-02-17 08:56:32 +0100
commit7b3b8c9af0099767f1defd46302dbf7ed1acfd7a (patch)
treee37846f5bb773e5a969b143f1552d29f2a795853
parentac01dd985ea5da709396bbbe7081bf47d569a2a4 (diff)
downloadmaint-scripts-7b3b8c9af0099767f1defd46302dbf7ed1acfd7a.tar.gz
tms: Add support for per-target addressees
Targets defined in the tegra-branches.yaml file can now take an "addressee" field that is used while generating pull requests. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rwxr-xr-xtms13
1 files changed, 11 insertions, 2 deletions
diff --git a/tms b/tms
index c9e5af6..d0e53e3 100755
--- a/tms
+++ b/tms
@@ -62,6 +62,11 @@ class Target:
else:
self.cc = []
+ if 'addressee' in data:
+ self.addressee = data['addressee']
+ else:
+ self.addressee = None
+
def __str__(self):
return self.name
@@ -230,8 +235,12 @@ class Branch:
width, count,
subject)
- content = 'Hi ARM SoC maintainers,\n'
- content += '\n'
+ if target.addressee:
+ content = 'Hi %s,\n' % target.addressee
+ content += '\n'
+ else:
+ content = 'Hi,\n'
+ content += '\n'
pull_request = repo.git.request_pull(branch.branches[0].name,
branch.remote.pull, tag)