aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/repos/scripts/make-repo-list.sh
blob: 3312a818d28fb1e26cd93cfcf0210daf2c94469d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -euo pipefail

cat < /dev/null > repos.cgitrc
for repo in $(gh repo list --limit 999 --source --visibility public --json name --jq '.[].name' | sort -f); do
    cat >> repos.cgitrc <<EOS
repo.url=${repo}
repo.path=/src/${repo}.git
repo.name=${repo}
repo.desc=${repo}
repo.owner=nsfisis
repo.homepage=https://github.com/nsfisis/${repo}

EOS
done