This command line tool fetches contributors from a given Github repo, and then fetches their user profile plus most recent git commit of each user.
To run it, just download the most recent release and follow the instructions below.
To make use of this CLI you're expected to have installed the following softwares:
- Java Runtime Environment (aka JRE) 8+
If you new to Java, or to Software Engineering, you should simply try to download it from https://java.com/en/download/
Otherwise, I highly recommend you to manage your Java installations using the awesome https://sdkman.io/
Once you have the required software installed (see #requirements) ensure you have access to Github and create a personal access token.
Create your personal access token in Github
Note: This is a required step in order to run the script without being rate limitted.
Make GH_FETCH_CONTRIBUTORS_USER
and GH_FETCH_CONTRIBUTORS_TOKEN
environment variables available
E.g. in a terminal window run:
export GH_FETCH_CONTRIBUTORS_USER=<YOUR_GITHUB_USER_NAME_HERE>
export GH_FETCH_CONTRIBUTORS_TOKEN=<YOUR_GITHUB_ACCESS_TOKNE_HERE>
There are two options to make use of a jar file.
- Download the latest release here; or
- Download it in your terminal using
curl -L -o <your-local-file-name-and-destionation> https://github.com/cesarcneto/gh-contributors-cli/releases/download/v0.1.0-snapshot/gh-contributors-cli-0.1.0-SNAPSHOT.jar
In the same terminal window that you ran step #2, run:
java -jar gh-contributors-cli-latest.jar --repo apache/spark
In the same terminal window that you ran step #2, run:
lein run gh-contributors-cli.main --repo apache/apark
Once the command run is completed, a file called result.csv
should be created at .data/apache/spark
(assuming that you provided --repo apache/spark
to the script). From this point, you should be able to import this csv file into your favorite spreadsheet tool and have fun! ^.^
IMPORTANT NOTE: This script will keep data cached in .data
folder. Make sure you delete the folder whenever you want to fetch data for a given repo again.
This was originally a Babashka script created here to help hiring managers to reach out to OpenSource contributors.