From 457b989c1fcc6bd77fbc15861b37050ef6ec073e Mon Sep 17 00:00:00 2001 From: lyn Date: Mon, 13 Apr 2026 10:35:07 +0000 Subject: [PATCH] Use type=all to include public repos in list-projs --- git-hangman-lab/scripts/list-projs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-hangman-lab/scripts/list-projs b/git-hangman-lab/scripts/list-projs index 8d2ed5f..d799cb5 100755 --- a/git-hangman-lab/scripts/list-projs +++ b/git-hangman-lab/scripts/list-projs @@ -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 |"