githubgithub-organizations

Custom location text for GitHub organization


How do I set a custom text for the location field of my GitHub organization? Such as the one below:

Under the settings of the organization, I can only find a drop-down menu that lets me select a country.


Solution

  • A little late to the game, but this solved my issue!

    For organizations:

    curl -H "Authorization: bearer GH_PAT_HERE" -d '{"location":"YOUR CUSTOM LOCATION"}' https://api.github.com/orgs/ORG_NAME
    

    Additionally for users:

    curl -H "Authorization: bearer GH_PAT_HERE" -d '{"location":"YOUR CUSTOM LOCATION"}' https://api.github.com/user
    

    Credit: https://github.community/t/setting-custom-location-for-github-free-organizations/193506/2