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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# List all repos the user has access to (owned + collaborated)
|
# Fetch all visible repos (owned + collaborated + public)
|
||||||
repos=$(curl -s -u "$USER:$TOKEN" "$GIT_BASE/user/repos?per_page=100" 2>/dev/null)
|
repos=$(curl -s -u "$USER:$TOKEN" "$GIT_BASE/user/repos?type=all&per_page=100" 2>/dev/null)
|
||||||
|
|
||||||
if [[ -z "$repos" ]]; then
|
if [[ -z "$repos" ]]; then
|
||||||
echo "| proj-name | owner | url | can-write |"
|
echo "| proj-name | owner | url | can-write |"
|
||||||
|
|||||||
Reference in New Issue
Block a user