{"id":19882132,"url":"https://github.com/codeclimate/github_repo_stats","last_synced_at":"2025-03-01T03:21:52.512Z","repository":{"id":173450426,"uuid":"650788988","full_name":"codeclimate/github_repo_stats","owner":"codeclimate","description":"Fetch Stats over accessible Repositories","archived":false,"fork":false,"pushed_at":"2023-06-20T14:32:23.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-11T18:18:41.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeclimate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-06-07T20:11:54.000Z","updated_at":"2023-06-07T20:13:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"797b01e8-92e5-40e3-a42b-565ac1679596","html_url":"https://github.com/codeclimate/github_repo_stats","commit_stats":null,"previous_names":["codeclimate/github_repo_stats"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fgithub_repo_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fgithub_repo_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fgithub_repo_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fgithub_repo_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeclimate","download_url":"https://codeload.github.com/codeclimate/github_repo_stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241310528,"owners_count":19941972,"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":[],"created_at":"2024-11-12T17:16:30.151Z","updated_at":"2025-03-01T03:21:52.506Z","avatar_url":"https://github.com/codeclimate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fetch Repos Info\n## Goal\nThis script gathers information from the github repos you have access to in your organization.\n## Installation\n### Using virtual environment\n```bash\npython3 -m venv fetch-repos\nsource fetch-repos/bin/activate\npip3 install -r requirements.txt\n```\n### Global install\n```bash\npip3 install --user -r requirements.txt\n```\n## Configuration\nThe API token needs the following requirements:\n- personal access token classic\n- permissions:\n\n![image info](./access_token_permissioning.png)\n\n### Getting started\n```bash\npython3 extract_repo_info.py \\\n    -o codeclimate \\\n    -t $TOKEN \\\n    -f ./path.csv \n```\n\n| Option                          | Value          | Description                                                                                                                        |\n|---------------------------------|----------------|------------------------------------------------------------------------------------------------------------------------------------|\n| -o                              | string         | your organization slug                                                                                                             |\n| -t                              | string         | the token you want to use to execute the requests. The script requests the organization's team. An elevated user token is required |\n| -f                              | file\u0026nbsp;path | file to export the data to in a CSV format                                                                                         |\n| \u0026#8209;\u0026#8209;append\u0026#8209;only | N/A            | flag to resume work from where you left off                                                                                        | \n\nThe script will generate a CSV, one line per repository, with data about commits, contribution activity and contributors.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeclimate%2Fgithub_repo_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeclimate%2Fgithub_repo_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeclimate%2Fgithub_repo_stats/lists"}