Last active
October 27, 2024 22:47
-
-
Save stephenamills/b4981a66cbbd1e5f68554e6f84d9793a to your computer and use it in GitHub Desktop.
Retrieve information from GitHub
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
gh api "/search/users?q=keyword+type:org" --paginate --jq '.items[].login' | |
ghsr --owner -L 300 --archived=false --json url,description --jq '.[] | (.url | ascii_downcase) + " # " + (.description // "" | gsub("\n"; " ") | gsub("\\s+"; " ") | sub("^\\s+"; "") | sub("\\s+$"; ""))' | |
ghsr --owner -L 300 --include-forks=only --archived=false --json url,description --jq '.[] | (.url | ascii_downcase) + " # " + .description' | |
for owner in googlecloudplatform googleapis google google-github-actions googleworkspace; do | |
ghsr --owner $owner vertex --match name,description,readme --archived=false --json url,description -L 300 --jq '.[] | (.url | ascii_downcase) + " # " + (.description // "" | gsub("\n"; " ") | gsub("\\s+"; " ") | sub("^\\s+"; "") | sub("\\s+$"; ""))' | |
done | |
for owner in mspnp azure-samples azure microsoft; do | |
ghsr --owner $owner keyword --match name,description,readme --archived=false --json url,description -L 300 --jq '.[] | (.url | ascii_downcase) + " # " + (.description // "" | gsub("\n"; " ") | gsub("\\s+"; " ") | sub("^\\s+"; "") | sub("\\s+$"; ""))' | |
done | |
for owner in aws-solutions-library-samples aws-ia build-on-aws aws-samples awslabs awsdocs aws; do | |
ghsr --owner $owner keyword --match name,description,readme --archived=false --json url,description -L 300 --jq '.[] | (.url | ascii_downcase) + " # " + (.description // "" | gsub("\n"; " ") | gsub("\\s+"; " ") | sub("^\\s+"; "") | sub("\\s+$"; ""))' | |
done | |
for owner in oracle-quickstart oracle-samples oracle-devrel oracle; do | |
ghsr --owner $owner keyword --match name,description,readme --archived=false --json url,description -L 300 --jq '.[] | (.url | ascii_downcase) + " # " + (.description // "" | gsub("\n"; " ") | gsub("\\s+"; " ") | sub("^\\s+"; "") | sub("\\s+$"; ""))' | |
done | |
for owner in googlecloudplatform googleapis google google-github-actions googleworkspace mspnp azure-samples azure microsoft aws-solutions-library-samples aws-ia build-on-aws aws-samples awslabs awsdocs aws oracle-quickstart oracle-samples oracle-devrel oracle; do | |
ghsr --owner $owner keyword --match name,description,readme --archived=false --json url,description -L 300 --jq '.[] | (.url | ascii_downcase) + " # " + .description' | |
done | |
gh api -X GET search/repositories -F q='created:2024-01-01..2024-12-31 language:python' --jq '.items[] | .full_name + " " + .description' | |
ghsc --owner microsoft vscode-remote-try -L 200 --json repository,url --jq '.[] | .repository.url + " " + (.url | ascii_downcase)' | awk '!seen[$1]++' | |
ghsc --owner cncf traefik -L 200 --json repository,url --jq '.[] | .repository.url + " " + (.url | ascii_downcase)' | awk '!seen[$1]++' | |
ghsc --owner redhat-middleware-workshops activemq -L 200 --json repository --jq '.[] | (.repository.url | ascii_downcase)' | |
gh search issues --repo 'owner/repo' 'keywords' | |
gh search prs --repo 'owner/repo' 'keywords' | |
# (\w+)\n(\w+) | |
# $1 $2 | |
# (https:\/\/[^\s]+) | |
# \n$1 | |
# ^\s*$\n | |
# inurl:gist.github.com kubernetes (Google Search) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment