A docker image which can be used to export an organization's team memberships to a CSV file.
The CSV file will be written to a data subfolder, and lists, for each member:
- The team id
- The team name
- The team slug
- The login id
- The login username
$ git clone https://gist.github.com/1d8f00bcae8b68d93f15b2ec2d77cff2.git export-github-memberships; cd export-github-memberships
Make the docker image
$ make
Copy the example environment file which will hold your GitHub access token:
$ cp env.example env
As a user with administrative privileges in GitHub, go to Settings => Developer settings => Personal access tokens, and create a personal access token with read:org
permissions.
Copy the token after the equals sign in your env
file.
You're ready.
make run
You'll be prompted for your GitHub organization slug, after which a timestamped CSV will be written to a data subfolder.
This worked flawlessly, thanks!