{"id":15905736,"url":"https://github.com/eczy/ghforeach","last_synced_at":"2026-02-25T20:32:08.474Z","repository":{"id":227538123,"uuid":"770726715","full_name":"eczy/ghforeach","owner":"eczy","description":"Utility for batch operations on GitHub repository contents.","archived":false,"fork":false,"pushed_at":"2025-05-12T06:08:17.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T07:22:44.250Z","etag":null,"topics":["github","go","golang","repository-management","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eczy.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,"zenodo":null}},"created_at":"2024-03-12T03:39:17.000Z","updated_at":"2025-05-12T06:07:07.000Z","dependencies_parsed_at":"2024-03-13T21:27:43.816Z","dependency_job_id":"692a5243-e06e-41d3-925d-f533b367a0f6","html_url":"https://github.com/eczy/ghforeach","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"b09555d6223206adf4f050455c70bed53a85361d"},"previous_names":["eczy/ghforeach"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eczy/ghforeach","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Fghforeach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Fghforeach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Fghforeach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Fghforeach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eczy","download_url":"https://codeload.github.com/eczy/ghforeach/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eczy%2Fghforeach/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29838070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github","go","golang","repository-management","utility"],"created_at":"2024-10-06T13:07:48.083Z","updated_at":"2026-02-25T20:32:08.457Z","avatar_url":"https://github.com/eczy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghforeach\n\n`ghforeach` is a tool to run batch operations on a large set of GitHub repositories. For example, this can be useful for creating or editing matching configuration files across many repos.\n\n## Installation\n\n`make install` will compile the executable and copy it to `/usr/local/bin`. If you want to place the executable elsewhere, run `make build` and then copy it to your desired location.\n\n## Usage\n\n```\nUsage: ghforeach [--authuser AUTHUSER] [--authtoken AUTHTOKEN] [--org ORG] [--user USER] [--nameexp NAMEEXP] [--namelist NAMELIST] [--topicexp TOPICEXP] [--topiclist TOPICLIST] [--shell SHELL] [--tmpdir TMPDIR] [--cleanup] [--overwrite] [--nthreads NTHREADS] [--json] [--debug] [COMMAND]\n\nPositional arguments:\n  COMMAND                command to run at root of each repo.\n\nOptions:\n  --authuser AUTHUSER    user for authenticating API requests. [env: GH_AUTH_USER]\n  --authtoken AUTHTOKEN\n                         token for authenticating API requests. [env: GH_AUTH_TOKEN]\n  --org ORG, -o ORG      organization owning repositories to be iterated.\n  --user USER, -u USER   user owning repositories to be iterated.\n  --nameexp NAMEEXP, -n NAMEEXP\n                         regular expression for matching repository names.\n  --namelist NAMELIST, -N NAMELIST\n                         path to file containing repository names (newline separated).\n  --topicexp TOPICEXP, -t TOPICEXP\n                         regular expression for matching topics.\n  --topiclist TOPICLIST, -T TOPICLIST\n                         path to file containing topics (newline separated).\n  --shell SHELL, -s SHELL\n                         path to shell used to run command. [default: /bin/sh]\n  --tmpdir TMPDIR, -d TMPDIR\n                         directory into which repositories will be cloned. [default: ./tmp]\n  --cleanup, -c          enable to delete TMPDIR after operations are complete.\n  --overwrite, -O        enable to delete TMPDIR before operations start.\n  --nthreads NTHREADS, -p NTHREADS\n                         number of repositories that will be handled in parallel. -1 for unlimited. [default: 1]\n  --json, -j             enable to display output as JSON.\n  --debug, -D            enable to debug logging.\n  --help, -h             display this help and exit\n```\n\nIf both `user` and `org` are specified, `org` takes precedence. If `command` contains spaces (e.g. `ls -la`), wrap it in double quotes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feczy%2Fghforeach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feczy%2Fghforeach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feczy%2Fghforeach/lists"}