{"id":17151250,"url":"https://github.com/soda480/github-contributions","last_synced_at":"2025-03-24T12:23:27.415Z","repository":{"id":110566528,"uuid":"361611152","full_name":"soda480/github-contributions","owner":"soda480","description":"A Python script to get contribution metrics for all members of a GitHub organization using the GitHub GraphQL API.","archived":false,"fork":false,"pushed_at":"2022-02-25T04:22:55.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T17:32:37.733Z","etag":null,"topics":["ansi","github","github-api","graphql","multiprocessing","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soda480.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-26T03:56:25.000Z","updated_at":"2022-02-25T04:22:58.000Z","dependencies_parsed_at":"2023-04-09T10:19:02.568Z","dependency_job_id":null,"html_url":"https://github.com/soda480/github-contributions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soda480%2Fgithub-contributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soda480%2Fgithub-contributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soda480%2Fgithub-contributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soda480%2Fgithub-contributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soda480","download_url":"https://codeload.github.com/soda480/github-contributions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245267817,"owners_count":20587508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi","github","github-api","graphql","multiprocessing","python"],"created_at":"2024-10-14T21:37:36.612Z","updated_at":"2025-03-24T12:23:27.409Z","avatar_url":"https://github.com/soda480.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-contributions\n[![Build](https://github.com/soda480/github-contributions/actions/workflows/main.yml/badge.svg)](https://github.com/soda480/github-contributions/actions/workflows/main.yml)\n[![Code Grade](https://api.codiga.io/project/21990/status/svg)](https://app.codiga.io/public/project/21990/github-contributions/dashboard)\n[![complexity](https://img.shields.io/badge/complexity-Simple:%205-green)](https://radon.readthedocs.io/en/latest/api.html#module-radon.complexity)\n[![vulnerabilities](https://img.shields.io/badge/vulnerabilities-None-green)](https://pypi.org/project/bandit/)\n[![python](https://img.shields.io/badge/python-3.6-teal)](https://www.python.org/downloads/)\n\nA 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.\n\n## `ghcontrib`\n```bash\nusage: ghcontrib [-h] [--org ORG]\n\nA Python script to get contribution metrics for all members of a GitHub\norganization using the GitHub GraphQL API\n\noptional arguments:\n  -h, --help  show this help message and exit\n  --org ORG   GitHub organization containing members to process\n  ```\n\nBuild the Docker image:\n```bash\ndocker image build \\\n--build-arg http_proxy \\\n--build-arg https_proxy \\\n-t ghcontrib:latest .\n```\n\nRun the Docker container:\n```bash\ndocker container run \\\n--rm \\\n-it \\\n-e http_proxy \\\n-e https_proxy \\\n-v $PWD:/ghcontrib \\\nghcontrib:latest /bin/sh\n```\n\nExport the required environment variable and execute the script:\n```bash\nexport GH_TOKEN_PSW=--github-token--\nghcontrib --org edgexfoundry\n```\n\n![preview](https://raw.githubusercontent.com/soda480/github-contributions/master/docs/images/contributions.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoda480%2Fgithub-contributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoda480%2Fgithub-contributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoda480%2Fgithub-contributions/lists"}