feat(docs-infra): support contributors belonging to multiple groups (#29553)

PR Close #29553
This commit is contained in:
George Kalpakas
2019-03-29 14:25:52 +02:00
committed by Jason Aden
parent b99a070f88
commit 33524d9d9c
5 changed files with 127 additions and 114 deletions

View File

@ -1,7 +1,7 @@
# Produces a GraphViz Dot file from the data in the contributors.json file.
# Documentation for this syntax at https://stedolan.github.io/jq/manual
to_entries
| map(select(.value.group=="Angular" or .value.group=="Collaborators"))
| map(select((.value.groups | index("Angular")) or (.value.groups | index("Collaborators"))))
| map(.value |= {name: .name, lead: (.lead // .mentor // "")})
| map(
"\(.key|tojson) [ label = \(.value.name|tojson) ] ",