diff options
author | Thierry Reding <treding@nvidia.com> | 2020-02-17 08:56:32 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-02-17 08:56:32 +0100 |
commit | 7b3b8c9af0099767f1defd46302dbf7ed1acfd7a (patch) | |
tree | e37846f5bb773e5a969b143f1552d29f2a795853 | |
parent | ac01dd985ea5da709396bbbe7081bf47d569a2a4 (diff) | |
download | maint-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-x | tms | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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) |