2019-02-22 14:16:21 -05:00
|
|
|
# Produces a GraphViz Dot file from the data in the contributors.json file.
|
|
|
|
# Documentation for this syntax at https://stedolan.github.io/jq/manual
|
2019-03-29 08:25:51 -04:00
|
|
|
to_entries
|
2019-03-29 08:25:52 -04:00
|
|
|
| map(select((.value.groups | index("Angular")) or (.value.groups | index("Collaborators"))))
|
2019-02-22 14:16:21 -05:00
|
|
|
| map(.value |= {name: .name, lead: (.lead // .mentor // "")})
|
|
|
|
| map(
|
|
|
|
"\(.key|tojson) [ label = \(.value.name|tojson) ] ",
|
|
|
|
"\(.key|tojson) -> \(.value.lead|tojson)"
|
|
|
|
)
|
|
|
|
[]
|
|
|
|
|