|
|
|
@ -27,6 +27,8 @@ pageCounter=1
|
|
|
|
|
timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
|
|
|
|
|
empty="false"
|
|
|
|
|
echo "" > allp.json
|
|
|
|
|
|
|
|
|
|
#query all the pages until an empty result is returned
|
|
|
|
|
while [ $empty = "false" ]
|
|
|
|
|
do
|
|
|
|
|
page=$(curl -X GET "https://code-repo.d4science.org/api/v1/orgs/${organization}/repos?page=${pageCounter}&limit=100000" -H "accept: application/json")
|
|
|
|
@ -40,6 +42,7 @@ do
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
#generate a file with one repo name for each line
|
|
|
|
|
grep "\"name\": " allp.json > all_filtered.json
|
|
|
|
|
sed "s/^[ \t]*\"name\": \"//g" all_filtered.json > all_filtered1.txt
|
|
|
|
|
sed 's/\",//g' all_filtered1.txt > all_filtered2.txt
|
|
|
|
|