Skip to content

Sending GitHub organization invite to multiple email addresses.

License

Notifications You must be signed in to change notification settings

OU-CS3560/org-bulk-invite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sending Bulk Invitation to GitHub Organization

Sending GitHub organization invitation to multiple email addresses.

Build the executable

mkdir build
cmake -S standalone -B build/standalone
cmake --build build/standalone

To use the tool, create the .env file with the given env.sample, and populate it with appropriate values. The following command will then run the program to send an invite to all the email addresses listed in email_addresses.txt.

./build/standalone/BulkInvite -f email_addresses.txt

If a CSV file is given to the program, it will assume that the file is generated from ta-tooling program, and will look for email handles in the emailHandle column. It will also append @ohio.edu to the handles automatically.

Note

Do note that the GH_TOKEN has to be from the owner of the organization and must be SSO authorized.

This program interacts with the Organization Member of GitHub API.

Todo

  • Properly handle rate limiting.
  • Extract repeating code for sending the request (e.g. back-off, response code checking and handling, header setup).
  • Implement the team id lookup program.
  • Check if response is 403 with x-github-sso: required; <more data>

About

Sending GitHub organization invite to multiple email addresses.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published