initial commit
This commit is contained in:
9
list-gitlab-projects.sh
Executable file
9
list-gitlab-projects.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
source config.sh
|
||||
for ((i=1; ; i+=1)); do
|
||||
contents=$(curl -s "$GL_DOMAIN/api/v4/projects?private_token=$GL_TOKEN&per_page=100&owned=true&page=$i")
|
||||
if jq -e '. | length == 0' >/dev/null; then
|
||||
break
|
||||
fi <<< "$contents"
|
||||
echo "$contents" | jq -r '.[].ssh_url_to_repo'
|
||||
done
|
||||
Reference in New Issue
Block a user