Sending GitHub organization invitation to multiple email addresses.
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.
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.
- 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>