Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit fbd64853 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

feat: list all my projects

parent 556ef4b5
No related branches found
No related tags found
1 merge request!5Resolve "export one project"
gitlab_url="https://gitlab.com/"
gitlab_api_token="dddddddddd"
......@@ -94,8 +94,22 @@ _create_config() {
_succed "Config Created"
}
_api() {
path=${1}
curl -s --header "PRIVATE-TOKEN: ${gitlab_api_token}" \
"${gitlab_url}api/v4/${path}"
}
_get_projects() {
_api "projects?simple=true&owned=true" | jq '.[].path'
}
_export() {
_load_config
echo "My GitLab projects :"
_get_projects
_succed "Export done"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment