Skip to content

Instantly share code, notes, and snippets.

View sebastiangajek's full-sized avatar
🎯
Focusing

Sebastian sebastiangajek

🎯
Focusing
View GitHub Profile
@sebastiangajek
sebastiangajek / sync-projects
Created May 9, 2019 10:04 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }"