Skip to content

Instantly share code, notes, and snippets.

@amingilani
Created January 20, 2021 23:15
Show Gist options
  • Save amingilani/cfc402e05a47265eae63d1db09b67655 to your computer and use it in GitHub Desktop.
Save amingilani/cfc402e05a47265eae63d1db09b67655 to your computer and use it in GitHub Desktop.
Following all the users part of a GitHub organization
# Requires Hub (not the GitHub API) and JQ
ORGANIZATION= # Set this as the organization you want to follow
hub api --paginate /orgs/${ORGANIZATION}/members | jq ".[].login" | (xargs -I % hub api -X PUT /user/following/% && sleep 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment