https://github.com/angular/angular
Raw File
Tip revision: 5f6323c36d2c1ed53c85ba20fe47da3b1174ac20 authored by Pawel Kozlowski on 29 November 2023, 17:15:12 UTC
release: cut the v17.0.5 release
Tip revision: 5f6323c
org_chart.jq
# 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.groups | index("Angular")) or
  (.value.groups | index("Collaborators"))))
| map(.value |= {
  name: .name,
  lead: (.lead // .mentor // ""),
  fillcolor: (if .groups | index("Collaborators") then "aquamarine" else "beige" end),
})
| map(
   "\(.key|tojson) [ label=\(.value.name|tojson) fillcolor=\(.value.fillcolor|tojson) style=filled ] ",
   (if .value.lead != "" then "\(.key|tojson) -> \(.value.lead|tojson)" else "" end)
  )
[]

back to top