automatically derive the release team PTL for delegating those changes

We have the data to know who the release PTL is, so we can look it
up. We don't have a name for the VMT or stable SIG, so we have to
continue to hard-code those.

Change-Id: Ia87fd65f25f709d49fd6bad365e4c1607f878d8f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2019-03-06 13:30:17 -05:00
parent 1329b40a39
commit 9256cc6d5a
1 changed files with 9 additions and 1 deletions

View File

@ -22,6 +22,9 @@ import operator
import prettytable
import requests
from openstack_governance import governance
LOG = logging.getLogger(__name__)
@ -401,11 +404,16 @@ def main():
level=args.log_level,
)
gov = governance.Governance.from_local_repo()
release_team = gov.get_team('Release Management')
delegates = {
'stable:follows-policy': 'Tony Breeds',
'vulnerability:managed': 'VMT',
'release-management': 'Sean McGinnis',
'release-management': release_team.ptl['name'],
}
for tag, name in sorted(delegates.items()):
print('Delegating {} tags to {}'.format(tag, name))
status = sorted(
(get_one_status(change, delegates)