-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_all_repos.sh
executable file
·56 lines (47 loc) · 3.74 KB
/
list_all_repos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
echo "Vytvorit seznam vsech repozitaru"
repos=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=1 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=2 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=3 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=4 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=5 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=6 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=7 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=8 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=9 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=10 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=11 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=12 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=13 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
sleep 2
repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=14 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
#sleep 2
#repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=15 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
#sleep 2
#repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=16 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
#sleep 2
#repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=17 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
#sleep 2
#repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=18 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
#sleep 2
#repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=19 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
#sleep 2
#repos=$repos$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/mlab-modules/repos?page=20 | jq '. | map(.ssh_url) | @sh' | tr -d '"' | tr -d "\'")
echo $repos | wc -l
echo " "
echo "Budu stahovat repozitare:"
echo $repos
echo " "
for i in $repos; do
echo $i;
done