Use type=all to include public repos in list-projs
This commit is contained in:
@@ -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 |"
|
||||
|
||||
Reference in New Issue
Block a user