/ devops / misc / stats.jq
stats.jq
1  jq < repo.json '.state |= map_values(map_values(length)) | .history |= length'