https://github.com/soda480/github-contributions
A Python script to get contribution metrics for all members of a GitHub organization using the GitHub GraphQL API.
https://github.com/soda480/github-contributions
ansi github github-api graphql multiprocessing python
Last synced: 10 months ago
JSON representation
A Python script to get contribution metrics for all members of a GitHub organization using the GitHub GraphQL API.
- Host: GitHub
- URL: https://github.com/soda480/github-contributions
- Owner: soda480
- Created: 2021-04-26T03:56:25.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-25T04:22:55.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T17:32:37.733Z (12 months ago)
- Topics: ansi, github, github-api, graphql, multiprocessing, python
- Language: Python
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-contributions
[](https://github.com/soda480/github-contributions/actions/workflows/main.yml)
[](https://app.codiga.io/public/project/21990/github-contributions/dashboard)
[](https://radon.readthedocs.io/en/latest/api.html#module-radon.complexity)
[](https://pypi.org/project/bandit/)
[](https://www.python.org/downloads/)
A Python script to get contribution metrics for all members of a GitHub organization. The script utilizes the GitHub GraphQL API, exports, sorts, and writes the report to a csv file.
## `ghcontrib`
```bash
usage: ghcontrib [-h] [--org ORG]
A Python script to get contribution metrics for all members of a GitHub
organization using the GitHub GraphQL API
optional arguments:
-h, --help show this help message and exit
--org ORG GitHub organization containing members to process
```
Build the Docker image:
```bash
docker image build \
--build-arg http_proxy \
--build-arg https_proxy \
-t ghcontrib:latest .
```
Run the Docker container:
```bash
docker container run \
--rm \
-it \
-e http_proxy \
-e https_proxy \
-v $PWD:/ghcontrib \
ghcontrib:latest /bin/sh
```
Export the required environment variable and execute the script:
```bash
export GH_TOKEN_PSW=--github-token--
ghcontrib --org edgexfoundry
```
