{"id":25805687,"url":"https://github.com/scriptogre/get-forks-with-commits-ahead","last_synced_at":"2026-06-17T10:31:31.865Z","repository":{"id":156112704,"uuid":"627975843","full_name":"scriptogre/get-forks-with-commits-ahead","owner":"scriptogre","description":"A script that retrieves the forks of a GitHub repository and determines the number of commits ahead of the base repository. The script uses the GitHub API to retrieve the forks and their commit history. The script also saves progress to a JSON file to allow for resuming the script if it is interrupted.","archived":false,"fork":false,"pushed_at":"2023-04-14T16:09:04.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-01T05:53:22.962Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scriptogre.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":"2023-04-14T16:05:11.000Z","updated_at":"2023-04-14T16:06:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"25d20379-b725-4915-848a-dda1ed61ee94","html_url":"https://github.com/scriptogre/get-forks-with-commits-ahead","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scriptogre/get-forks-with-commits-ahead","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fget-forks-with-commits-ahead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fget-forks-with-commits-ahead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fget-forks-with-commits-ahead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fget-forks-with-commits-ahead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scriptogre","download_url":"https://codeload.github.com/scriptogre/get-forks-with-commits-ahead/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptogre%2Fget-forks-with-commits-ahead/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34445179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-02-27T19:39:16.981Z","updated_at":"2026-06-17T10:31:31.860Z","avatar_url":"https://github.com/scriptogre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Forks Commit Comparison\n\nThis script fetches forks of a GitHub repository and checks which forks have commits ahead of the base repository. The results are saved in a JSON file for further analysis.\n\n## Requirements\n\n- Python 3.7 or higher\n- `requests` library\n\nTo install the `requests` library, run:\n\n```bash\npip install requests\n```\n\n## Usage\n\n1. Update the `.env` file with your GITHUB_TOKEN (your GitHub personal access token), GITHUB_OWNER \u0026 GITHUB_REPO (username of target repository's owner and repository's name) and PROGRESS_FILENAME (the name of the file to keep track of progress).\n2. Run the script:\n```bash\npython forks_commit_comparison.py\n```\n3. The script will analyze the forks and save the results in a JSON file named `progress.json`. This file contains forks with commits ahead of the base repository and the number of commits ahead for each fork.\n\n## Note\nPlease be aware of the GitHub API rate limits. Unauthenticated requests are limited to 60 requests per hour, and authenticated requests are limited to 5000 requests per hour. This script uses authenticated requests. If you reach your rate limit, the script will error out. You will then need to resume after the rate limit reset time.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptogre%2Fget-forks-with-commits-ahead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptogre%2Fget-forks-with-commits-ahead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptogre%2Fget-forks-with-commits-ahead/lists"}