Skip to content

Instantly share code, notes, and snippets.

@aidswidjaja
Created September 17, 2021 03:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aidswidjaja/242ce25f8a92d68b8f57650eecd53560 to your computer and use it in GitHub Desktop.
Save aidswidjaja/242ce25f8a92d68b8f57650eecd53560 to your computer and use it in GitHub Desktop.
GitHub custom organization locations

Set custom GitHub organization locations, like this one:

image

Since GitHub tries to make you choose from countries now, just use the API to get around it.

curl \
  -X PATCH \
  -H "Accept: application/vnd.github.v3+json" \
  -H "Authorization: token YOUR_TOKEN_HERE" \
  https://api.github.com/orgs/ORG_NAME_HERE \
  -d '{"location":"ORG_LOCATION_HERE"}'

where:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment