summaryrefslogtreecommitdiffhomepage
path: root/services/repos/scripts/make-repo-list.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-11-02 11:44:36 +0900
committernsfisis <nsfisis@gmail.com>2025-11-02 11:44:36 +0900
commitf47a2ded50f3367d0c7b0673a6c452a93c1a669f (patch)
tree81d5189dd550b7f4f4fe9227029cb87c9a96f7a6 /services/repos/scripts/make-repo-list.sh
parent960fb725eff960720268aa1425ac8880377d638f (diff)
downloadnsfisis.dev-f47a2ded50f3367d0c7b0673a6c452a93c1a669f.tar.gz
nsfisis.dev-f47a2ded50f3367d0c7b0673a6c452a93c1a669f.tar.zst
nsfisis.dev-f47a2ded50f3367d0c7b0673a6c452a93c1a669f.zip
feat(repos): add new service, reposHEADmain
Diffstat (limited to 'services/repos/scripts/make-repo-list.sh')
-rwxr-xr-xservices/repos/scripts/make-repo-list.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/services/repos/scripts/make-repo-list.sh b/services/repos/scripts/make-repo-list.sh
new file mode 100755
index 00000000..73e7be68
--- /dev/null
+++ b/services/repos/scripts/make-repo-list.sh
@@ -0,0 +1,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'); 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