This app will help you determine the number of contributors for your source control repositories for the purpose Mayhem licensing.
docker
- Clone the repository
git clone [email protected]:ForAllSecure/contributor-count.git
- Build the Docker image
docker build -t mayhem-contributor-count:latest .
- Run the app with docker (Example azure devops)
docker run -it --rm mayhem-contributor-count:latest azure-devops --token pvk... --organization my-organization
Python 3.9+
- Clone the repository
git clone [email protected]:ForAllSecure/contributor-count.git
- Create a Virtual Environment
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
- Run the app (Example azure devops)
./contrib-count.py azure-devops --token pvk... --organization my-organization
-
Personal access token
You will need a Personal Access Token in order to access your Azure DevOps repositories.
ℹ️ The following examples run the script from source.
If you are using Docker instructions, simply substitute
./contrib-count.py
for
docker run -it --rm mayhem-contributor-count:latest
./contrib-count.py azure-devops --token pvk... --organization my-organization
./contrib-count.py azure-devops --token pvk... --organization my-organization --since-days 180
./contrib-count.py azure-devops --token pvk... --organization my-organization --projects "project1,project2"