fiqus / coophub

Cooperatives repos over the world! 🌈🌎
https://coophub.io
MIT License
58 stars 28 forks source link

Coop profile: show main languages #7

Closed areq closed 4 years ago

areq commented 5 years ago

We may display those above the average percentage (displays "n" langs) or just the most "n" langs (fixed).

pbrudnick commented 4 years ago

percentajes added for org and repo data in the json data from the API under lang_stats

diegomanuel commented 4 years ago

Removed from lang_stats! Now for both each repo and the whole org itself, it's under languages key, like:

"languages": {
  "CSS": {
    "bytes": 13919,
    "percentage": 13.56
  },
  "Elixir": {
    "bytes": 79581,
    "percentage": 77.53
  },
  "HTML": {
    "bytes": 2769,
    "percentage": 2.7
  },
  "JavaScript": {
    "bytes": 6383,
    "percentage": 6.22
  }
}