πŸš€ How to Make Your Epic Games Membership Public on GitHub with cURL πŸ’» (Step-by-Step Guide)

Baivab Sarkar - Sep 27 - - Dev Community

GitHub Fun Gif

GitHub is home to many large organizations like Epic Games πŸ•ΉοΈ, with hundreds of thousands of members. If you've just joined a big organization like this, you might be wondering how to show off your membership so the world can see it 🌎! Well, fret not! I’ll walk you through how to make your membership public 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

. . . . . . . . .
Terabox Video Player