DEV Community

Cover image for ๐Ÿš€ How to change visibility in massive GitHub organizations like EpicGames? (Step-by-Step Guide)
Baivab Sarkar
Baivab Sarkar

Posted on • Edited on

๐Ÿš€ How to change visibility in massive GitHub organizations like EpicGames? (Step-by-Step Guide)

GitHub Fun Gif

Ever wondered what it's like being part of a massive GitHub organization like Epic Games? With over 498,800 members, it's not just about the cool access to private repos and source codesโ€”itโ€™s also about the sheer scale of it all. But here's where it gets interesting: GitHub's web interface wasnโ€™t exactly built to handle this many people.

So, you might run into trouble if you're trying to tweak something simpleโ€”like hiding or showing Epic Games' logo on your profile. The filter function times out, and with the member list capped at 50,000, good luck finding your account! Even clever tricks like changing the URL for an alphabetical search can leave you stuck.

Well, fret not! Iโ€™ll walk you through how to publicize your membership using cURL and GitHubโ€™s REST API.

Image description

๐Ÿง Why Make Your Membership Public?

Because:

  • ๐Ÿ† Bragging Rights: Who wouldnโ€™t want to show off being part of something cool like Epic Games?
  • ๐Ÿ“ˆ Networking: Let employers, collaborators, and random cool coders know you're part of something BIG.
  • ๐Ÿ‘€ Credibility: When people see Epic Games on your GitHub, they'll know you're not messing around!

However, the GitHub UI can struggle with big orgs (409k members ๐Ÿ˜ณ), so youโ€™ll need to use some API magic ๐Ÿง™โ€โ™‚๏ธ to do this!


๐Ÿ’ก How to Make Your GitHub Membership Public with cURL

Follow these steps and become the public face of your GitHub org in no time:


Step 1: Create a Personal Access Token (PAT) ๐Ÿ”

First things first, you'll need to generate a PAT to access the GitHub API. Here's how:

  1. Go to Your GitHub Settings:

    • Navigate to Developer settings.
    • Head to Personal access tokens.
  2. Generate a New Token:

    • Click on Generate new token.
    • Ensure you check the read:org scope.
  3. Copy That Token!:

    • Be quick! Once generated, copy it because you wonโ€™t see it again.

Step 2: Use cURL to Make Your Membership Public ๐Ÿ“ก

Now, time to flex those cURL muscles ๐Ÿ’ช! Open your terminal and run this command:

curl -X PUT -H "Accept: application/vnd.github.v3+json" -u YOUR_GITHUB_USERNAME:YOUR_PAT_TOKEN https://api.github.com/orgs/ORGANIZATION_NAME/public_members/YOUR_GITHUB_USERNAME
Enter fullscreen mode Exit fullscreen mode

Example:

curl -X PUT -H "Accept: application/vnd.github.v3+json" -u ThisIs-Developer:ghp_12345MYTOKEN https://api.github.com/orgs/EpicGames/public_members/ThisIs-Developer
Enter fullscreen mode Exit fullscreen mode

Donโ€™t forget to replace the placeholders with your real username and token! ๐Ÿ˜œ

Image description

Step 3: Check Out Your Public Membership ๐ŸŽ‰

Done with the cURL command? Head over to your GitHub profile and check out your shiny new public membership under the Organizations section.

Mission Accomplished Gif


๐Ÿš€ Quick Tip: Running cURL Commands

For Windows Users:

  • Open Command Prompt or PowerShell.
  • Paste the command, hit Enter, and youโ€™re done!

For macOS/Linux Users:

  • Open Terminal.
  • Paste and execute that command!

๐Ÿ›ก๏ธ A Word of Caution: Protect Your PAT!

Your PAT is like your GitHub password ๐Ÿ”‘. Keep it safe and never share it publicly. If it gets leaked, revoke it through GitHub settings to keep your account secure.

PAT Warning Gif


๐Ÿค” Wrapping Up: Flaunt Your GitHub Membership!

Making your GitHub membership public is super easy and a great way to build your personal brand ๐Ÿ’ผ. It lets the world know you're part of the epic developer community. Plus, you can flex about being in orgs like Epic Games! ๐Ÿ•น๏ธ

Found this helpful? ๐Ÿ’ฌ Drop a comment, give it a thumbs up ๐Ÿ‘, and share this post with your fellow developers! If you run into any issues, feel free to reach outโ€”Iโ€™ve got your back ๐Ÿ’ช!

Success Gif

Top comments (0)