Skip to content

A gh CLI extension to analyze languages in GitHub Organizations.

License

Notifications You must be signed in to change notification settings

CallMeGreg/gh-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Language Analyzer

This is an extension to the gh command-line tool for analyzing the count of programming languages used in repositories across a GitHub organization. It retrieves a list of repositories and their associated languages, and then aggregates the data to produce a report of language frequency.

Note

If you are looking to compare your language frequnecy against public trends, you can access quarterly data from 2020 onward here as part of GitHub's Innovation Graph project.

Pre-requisites

  1. Install the GitHub CLI: https://github.com/cli/cli#installation
  2. Confirm that you are authenticated with an account that has access to the org you would like to analyze:
gh auth status

Installation

To install this extension, run the following command:

gh extension install CallMeGreg/gh-language

Usage

Count command

Display the count of programming languages used in repos across an organization.

gh language count YOUR_ORG_NAME
Screenshot 2024-04-23 at 11 17 09 AM

Optionally specify the repo limit (--limit) and/or the number of languages to return (--top)

gh language count YOUR_ORG_NAME --limit 1000 --top 20

Optionally filter by a specific language (--language)

gh language count YOUR_ORG_NAME --language Java

Note

The --language flag values are case-sensitive.

Trend command

Display the breakdown of programming languages used in repos across an organization per year, based on the repo creation date.

gh language trend YOUR_ORG_NAME
Screenshot 2024-04-23 at 11 18 06 AM

Optionally specify the repo limit (--limit) and/or the number of languages to return (--top)

gh language trend YOUR_ORG_NAME --limit 1000 --top 20

Optionally filter by a specific language (--language)

gh language trend YOUR_ORG_NAME --language Java

Note

The --language flag values are case-sensitive.

Help

For help, run:

gh language -h
Usage:
  language [command]

Available Commands:
  count       Analyze the count of programming languages used in repos across an organization
  help        Help about any command
  trend       Analyze the trend of programming languages used in repos across an organization over time

Flags:
  -h, --help              help for language
  -L, --language string   The language to filter on
  -l, --limit int         The maximum number of repositories to evaluate (default 100)
  -t, --top int           Return the top N languages (ignored when a language is specified) (default 10)

Use "language [command] --help" for more information about a command.

License

This tool is licensed under the MIT License. See the LICENSE file for details.

About

A gh CLI extension to analyze languages in GitHub Organizations.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages