add teams info into metadata

This commit is contained in:
2022-09-06 15:41:01 +02:00
parent d30e3d778f
commit 4c7e210159
3 changed files with 169 additions and 28 deletions

View File

@ -9,20 +9,9 @@ new_data = data._service_data
services = data.service_dict
for srv in new_data["services"]:
if len(srv["repositories"]) ==1:
r1 = srv["repositories"][0]
srv["repositories"] = [
{
"environment": r1["environment"],
"repo": r1["repo"],
"type": r1["type"]
},
{
"environment": "public",
"repo": 'opentelekomcloud-' + r1["repo"],
"type": "github"
},
]
srv["teams"] = [
{"name": f"docs-{srv['service_category']}-rw", "permission": "write"}
]
_yaml = YAML()