Created
January 20, 2021 23:15
-
-
Save amingilani/cfc402e05a47265eae63d1db09b67655 to your computer and use it in GitHub Desktop.
Following all the users part of a GitHub organization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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