feat: fetch repos by user name
This commit is contained in:
commit
47bfcff7c9
13
list_repos_contributors_by_user.sh
Normal file
13
list_repos_contributors_by_user.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# List all repositories for the user
|
||||||
|
REPOS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/users/$GITHUB_USER/repos?per_page=100" | jq -r '.[].name')
|
||||||
|
|
||||||
|
echo "Fetching contributors from all repositories..."
|
||||||
|
for REPO in $REPOS; do
|
||||||
|
echo "🔍 Scanning $REPO..."
|
||||||
|
curl -s -H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/repos/$GITHUB_USER/$REPO/contributors" | jq -r '.[].login'
|
||||||
|
done
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user