Skip to content

Instantly share code, notes, and snippets.

@noraworld
Last active July 28, 2022 10:26
Show Gist options
  • Save noraworld/3e67f58692efa443a8d01fdf2ebcd117 to your computer and use it in GitHub Desktop.
Save noraworld/3e67f58692efa443a8d01fdf2ebcd117 to your computer and use it in GitHub Desktop.
Search repositories by specific language used even slightly
# This sample retrieves all the repositories that you have and that use even a little Python
# It may take a little time to get the results
#
# You may change the following parameters:
#
# 1. Change "100" if you have more than 100 repositories
# 2. Change "Python" if you want to find repositories in another language
#
gh repo list -L 100 |
awk '{ print $1 }' |
xargs -I {} gh repo view {} --json name,languages |
grep '"name":"Python"' |
jq -r .name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment