Skip to content

Instantly share code, notes, and snippets.

View brycehemme's full-sized avatar

Bryce Hemme brycehemme

  • Granular
  • Des Moines, IA
View GitHub Profile
@brycehemme
brycehemme / sync-projects
Created September 27, 2017 12:33 — 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 }"