Last active
July 28, 2022 10:26
-
-
Save noraworld/3e67f58692efa443a8d01fdf2ebcd117 to your computer and use it in GitHub Desktop.
Search repositories by specific language used even slightly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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