Use type=all to include public repos in list-projs

This commit is contained in:
lyn
2026-04-13 10:35:07 +00:00
parent c8642368e9
commit 457b989c1f

View File

@@ -11,8 +11,8 @@ if [[ -z "$USER" || -z "$TOKEN" ]]; then
exit 1
fi
# List all repos the user has access to (owned + collaborated)
repos=$(curl -s -u "$USER:$TOKEN" "$GIT_BASE/user/repos?per_page=100" 2>/dev/null)
# Fetch all visible repos (owned + collaborated + public)
repos=$(curl -s -u "$USER:$TOKEN" "$GIT_BASE/user/repos?type=all&per_page=100" 2>/dev/null)
if [[ -z "$repos" ]]; then
echo "| proj-name | owner | url | can-write |"