Skip to content

Instantly share code, notes, and snippets.

@switchspan
Forked from nikhita/list-all-repos.sh
Created August 25, 2023 18:06

Revisions

  1. @nikhita nikhita created this gist Feb 10, 2021.
    10 changes: 10 additions & 0 deletions list-all-repos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/usr/bin/env bash

    # This script generates a list of repos in a GitHub org.
    # The list can be pasted directly to a Microsoft Excel sheet.
    # You will need to use your GitHub username in the username field.
    # Update the page=N number to get the complete list of repos.
    curl --silent --user "username" "https://api.github.com/orgs/vmware/repos?page=1&per_page=100" | npx jq '.[].html_url' | while read repo
    do
    echo "=Hyperlink("$repo","$repo")"
    done