File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function usage() {
7
7
8
8
# **** Lister les ID des sous-groupes d'un groupe (donné par son ID) : ****
9
9
function get_subgroups_id() {
10
- echo " $( curl -s --header " PRIVATE-TOKEN: $PRIVATE_TOKEN_API " " https://gitlab.com/api/v4/groups/$1 /subgroups" | jq -r " .[].id" ) "
10
+ echo " $( curl -s --header " PRIVATE-TOKEN: $PRIVATE_TOKEN_API " " https://gitlab.com/api/v4/groups/$1 /subgroups?per_page=100 " | jq -r " .[].id" ) "
11
11
}
12
12
13
13
# **** Récupérer le nom d'un groupe (donné par son ID) : ****
@@ -17,15 +17,15 @@ function get_groupname() {
17
17
18
18
# **** Récupérer les URLs des dépots d'un groupe (donné par son ID) : ****
19
19
function get_repo_https() {
20
- echo " $( curl -s --header " PRIVATE-TOKEN: $PRIVATE_TOKEN_API " " https://gitlab.com/api/v4/groups/$1 " | jq -r " .projects[].http_url_to_repo" ) "
20
+ echo " $( curl -s --header " PRIVATE-TOKEN: $PRIVATE_TOKEN_API " " https://gitlab.com/api/v4/groups/$1 ?per_page=100 " | jq -r " .projects[].http_url_to_repo" ) "
21
21
}
22
22
23
23
# **** Descends dans l'arbre des groupes et affiche les éléments rencontrés : ***
24
24
function process_group() {
25
25
echo " $1 "
26
26
local sg=$( get_subgroups_id $1 )
27
27
local g=" "
28
-
28
+
29
29
for g in $sg
30
30
do echo $( process_group $g )
31
31
done
You can’t perform that action at this time.
0 commit comments