{"id":30240403,"url":"https://github.com/hypothesis/commando","last_synced_at":"2026-03-09T18:37:39.693Z","repository":{"id":64993893,"uuid":"545992637","full_name":"hypothesis/commando","owner":"hypothesis","description":"Run commands in repos and send any resulting changes as PRs.","archived":false,"fork":false,"pushed_at":"2025-09-10T08:55:28.000Z","size":79,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-05T17:51:42.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hypothesis.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-05T10:34:48.000Z","updated_at":"2025-09-10T08:55:31.000Z","dependencies_parsed_at":"2023-02-19T07:00:38.854Z","dependency_job_id":"37e70b22-60b1-4b6a-8476-9e5da73662d5","html_url":"https://github.com/hypothesis/commando","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hypothesis/commando","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypothesis%2Fcommando","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypothesis%2Fcommando/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypothesis%2Fcommando/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypothesis%2Fcommando/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypothesis","download_url":"https://codeload.github.com/hypothesis/commando/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypothesis%2Fcommando/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30307548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-08-15T04:38:24.800Z","updated_at":"2026-03-09T18:37:39.653Z","avatar_url":"https://github.com/hypothesis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/hypothesis/commando/actions/workflows/ci.yml?query=branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/hypothesis/commando/ci.yml?branch=main\"\u003e\u003c/a\u003e\n\u003ca\u003e\u003cimg src=\"https://img.shields.io/badge/python-3.12 | 3.11 | 3.10 | 3.9-success\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hypothesis/commando/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-BSD--2--Clause-success\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hypothesis/cookiecutters/tree/main/pypackage\"\u003e\u003cimg src=\"https://img.shields.io/badge/cookiecutter-pypackage-success\"\u003e\u003c/a\u003e\n\u003ca href=\"https://black.readthedocs.io/en/stable/\"\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000\"\u003e\u003c/a\u003e\n\n# Commando\n\nRun commands in repos and send any resulting changes as PRs.\n\nCommando clones a given list of GitHub repos, runs a given command in each\nrepo, and sends any resulting changes as pull requests (PRs) to each repo.\n\n### Usage\n\nFor example lets send PRs to repo-1, repo-2 and repo-3 to add a copyright notice to the bottom\nof each repo's `README.md` file:\n\n```console\n$ commando --repos hypothesis/repo-1 hypothesis/repo-2 hypothesis/repo-3 \\\n           --command 'echo \"Copyright (c) 2022 Me\" \u003e\u003e README.md' \\\n           --branch add-copyright-notice \\\n           --commit-message 'Add a copyright notice to the README' \\\n           --pr-title 'Add a copyright notice to the README'\n```\n\nSee `commando --help` for the full list of command line options.\n\nYou can give a hard-coded list of repos like in the command above or you can\nuse a command to generate the `--repos` argument. For example we can use\n[GitHub CLI](https://cli.github.com/)'s\n[`gh api`](https://cli.github.com/manual/gh_api) command to call the GitHub\nREST API's [search repositories](https://docs.github.com/en/rest/search?apiVersion=2022-11-28#search-repositories)\nAPI and get a list of all repos in the hypothesis organization that have the\ntext `cookiecutter.json` in their README file. We can then run `make template`\nto update each repo with any changes from [our cookiecutter templates](https://github.com/hypothesis/cookiecutters):\n\n```console\n$ commando --repos $(gh api -X GET search/repositories --paginate -f 'q=cookiecutter.json in:readme org:hypothesis archived:false' -q '.items | .[] | .full_name' | xargs) \\\n           --command 'make template'\n           --branch cookiecutter\n           --commit-message 'Apply updates from cookiecutter'\n           --pr-title 'Apply updates from cookiecutter'\n```\n\n## Installing\n\nWe recommend using [pipx](https://pypa.github.io/pipx/) to install\nCommando.\nFirst [install pipx](https://pypa.github.io/pipx/#install-pipx) then run:\n\n```terminal\npipx install git+https://github.com/hypothesis/commando.git\n```\n\nYou now have Commando installed! For some help run:\n\n```\ncommando --help\n```\n\n## Upgrading\n\nTo upgrade to the latest version run:\n\n```terminal\npipx upgrade commando\n```\n\nTo see what version you have run:\n\n```terminal\ncommando --version\n```\n\n## Uninstalling\n\nTo uninstall run:\n\n```\npipx uninstall commando\n```\n\n## Setting up Your Commando Development Environment\n\nFirst you'll need to install:\n\n* [Git](https://git-scm.com/).\n  On Ubuntu: `sudo apt install git`, on macOS: `brew install git`.\n* [GNU Make](https://www.gnu.org/software/make/).\n  This is probably already installed, run `make --version` to check.\n* [pyenv](https://github.com/pyenv/pyenv).\n  Follow the instructions in pyenv's README to install it.\n  The **Homebrew** method works best on macOS.\n  The **Basic GitHub Checkout** method works best on Ubuntu.\n  You _don't_ need to set up pyenv's shell integration (\"shims\"), you can\n  [use pyenv without shims](https://github.com/pyenv/pyenv#using-pyenv-without-shims).\n\nThen to set up your development environment:\n\n```terminal\ngit clone https://github.com/hypothesis/commando.git\ncd commando\nmake help\n```\n\n## Changing the Project's Python Versions\n\nTo change what versions of Python the project uses:\n\n1. Change the Python versions in the\n   [cookiecutter.json](.cookiecutter/cookiecutter.json) file. For example:\n\n   ```json\n   \"python_versions\": \"3.10.4, 3.9.12\",\n   ```\n\n2. Re-run the cookiecutter template:\n\n   ```terminal\n   make template\n   ```\n\n3. Commit everything to git and send a pull request\n\n## Changing the Project's Python Dependencies\n\nTo change the production dependencies in the `setup.cfg` file:\n\n1. Change the dependencies in the [`.cookiecutter/includes/setuptools/install_requires`](.cookiecutter/includes/setuptools/install_requires) file.\n   If this file doesn't exist yet create it and add some dependencies to it.\n   For example:\n\n   ```\n   pyramid\n   sqlalchemy\n   celery\n   ```\n\n2. Re-run the cookiecutter template:\n\n   ```terminal\n   make template\n   ```\n\n3. Commit everything to git and send a pull request\n\nTo change the project's formatting, linting and test dependencies:\n\n1. Change the dependencies in the [`.cookiecutter/includes/tox/deps`](.cookiecutter/includes/tox/deps) file.\n   If this file doesn't exist yet create it and add some dependencies to it.\n   Use tox's [factor-conditional settings](https://tox.wiki/en/latest/config.html#factors-and-factor-conditional-settings)\n   to limit which environment(s) each dependency is used in.\n   For example:\n\n   ```\n   lint: flake8,\n   format: autopep8,\n   lint,tests: pytest-faker,\n   ```\n\n2. Re-run the cookiecutter template:\n\n   ```terminal\n   make template\n   ```\n\n3. Commit everything to git and send a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypothesis%2Fcommando","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypothesis%2Fcommando","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypothesis%2Fcommando/lists"}