callmegreg / gh-language Goto Github PK
View Code? Open in Web Editor NEWA gh CLI extension to analyze languages in GitHub Organizations.
License: MIT License
A gh CLI extension to analyze languages in GitHub Organizations.
License: MIT License
Thanks for the new feature in 1.3.0 that adds a trend command to visualize the frequency of languages per year (based on repo creation date).
Is it expected behavior for the output to be in non-chronological order? See screenshot for the output when I ran
gh language trend microsoft
...where the data goes in this order: 2023, 2021, 2018, 2017, 2015, 2024, 2022, 2020, 2019, 2016, 2014
For organizations that have applied custom properties to their repos, it would be valuable to see language distribution for only those repos with a particular key/value pair (e.g. repos tagged with Environment
= Production
)
The output currently displays the maximum number of repos scanned...
Limiting to 100 repositories.
...but doesn't tell us how many were actually scanned.
Could we change it so that instead of output like this:
Limiting to 100 repositories.
Returning the top 10 languages.
3 repos (60%) that include the language: Python
3 repos (60%) that include the language: Shell
3 repos (60%) that include the language: C
2 repos (40%) that include the language: Makefile
2 repos (40%) that include the language: Batchfile
1 repos (20%) that include the language: Assembly
1 repos (20%) that include the language: AMPL
1 repos (20%) that include the language: FreeMarker
1 repos (20%) that include the language: Roff
1 repos (20%) that include the language: XSLT
it would share how many were actually scanned and look like this:
Limiting to 100 repositories.
5 repositories identified.
Returning the top 10 languages.
3 repos (60%) that include the language: Python
3 repos (60%) that include the language: Shell
3 repos (60%) that include the language: C
2 repos (40%) that include the language: Makefile
2 repos (40%) that include the language: Batchfile
1 repos (20%) that include the language: Assembly
1 repos (20%) that include the language: AMPL
1 repos (20%) that include the language: FreeMarker
1 repos (20%) that include the language: Roff
1 repos (20%) that include the language: XSLT
I know it's not much work to figure out that in this example 3 is 60% of 5, but a user would probably appreciate saving them that work.
The output currently displays the frequency of languages since an organization's inception.
Would it be possible to add an option to the output that would display the frequency of languages used by year? When this option is invoked the output might look something like the below. The numbers in this example don't add up, just showing a possible way to communicate the relative frequencies over time.
Analyzing organization: AcmeCo
Limiting to 100 repositories.
Returning the top 10 languages.
-----------------------------------------------------
For repos created in 2023
88 repos (88%) that include the language: HTML
77 repos (77%) that include the language: Ruby
17 repos (17%) that include the language: Shell
16 repos (16%) that include the language: Python
4 repos ( 4%) that include the language: SCSS
-----------------------------------------------------
For repos created in 2022
88 repos (88%) that include the language: HTML
77 repos (77%) that include the language: Dockerfile
17 repos (17%) that include the language: CSS
16 repos (16%) that include the language: Java
-----------------------------------------------------
For repos created in 2021
88 repos (88%) that include the language: HTML
77 repos (77%) that include the language: C
17 repos (17%) that include the language: Shell
16 repos (16%) that include the language: Python
11 repos (11%) that include the language: C++
This would be valuable because it would show an organization's decisions about the languages they're invested in over time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.