{"id":23140870,"url":"https://github.com/armand-sauzay/scribes","last_synced_at":"2025-04-08T17:43:59.681Z","repository":{"id":200877387,"uuid":"704308650","full_name":"armand-sauzay/scribes","owner":"armand-sauzay","description":"Apply sweeping changes to all repositories","archived":false,"fork":false,"pushed_at":"2024-08-13T14:22:12.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T19:45:08.734Z","etag":null,"topics":["api","cli","github","python"],"latest_commit_sha":null,"homepage":"","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/armand-sauzay.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-10-13T01:44:48.000Z","updated_at":"2024-10-02T00:59:06.000Z","dependencies_parsed_at":"2024-12-17T14:12:04.902Z","dependency_job_id":"5a7e3d97-3828-4525-83a7-e523a5c65f5f","html_url":"https://github.com/armand-sauzay/scribes","commit_stats":null,"previous_names":["armand-sauzay/scribes"],"tags_count":4,"template":false,"template_full_name":"armand-sauzay/python-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armand-sauzay%2Fscribes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armand-sauzay%2Fscribes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armand-sauzay%2Fscribes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armand-sauzay%2Fscribes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armand-sauzay","download_url":"https://codeload.github.com/armand-sauzay/scribes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247895757,"owners_count":21014379,"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":["api","cli","github","python"],"created_at":"2024-12-17T14:11:52.861Z","updated_at":"2025-04-08T17:43:59.674Z","avatar_url":"https://github.com/armand-sauzay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scribes\n\nScribes is a distributed refactoring tool that enables you to clone repositories and apply sweeping changes.\n\n## Getting started\n\n### Pre-requisites\n\nScribes relies on git and the [GitHub cli](https://github.com/cli/cli) (gh). You\ncan follow install instructions for gh [here](https://github.com/cli/cli). You\ncan then authenticate using `gh auth login`.\n\n### Usage\n\nLet's say you want to clone all repos in an organization and apply pre-commit autoupdate to all repos.\n\n1. `pip install scribes`\n\n2. Run the following commands\n   ```bash\n   scribes search\n   scribes filter --contains-file .pre-commit-config.yaml\n   scribes clone --limit 10\n   scribes run \"git branch\"\n   scribes run \"git checkout -b pre-commit-autoupdate\"\n   scribes run \"pre-commit autoupdate\"\n   scribes run \"git add .pre-commit-config.yaml\"\n   scribes run \"git commit -m 'chore: autoupdate pre-commit'\"\n   scribes run \"git push origin pre-commit-autoupdate\"\n   scribes run \"gh pr create --title 'chore: autoupdate pre-commit' --body 'Autoupdate pre-commit' --base main --head pre-commit-autoupdate\"\n   ```\n\n🎉 There it is, you have created PRs to autoupdate pre-commit in all repos that contain a `.pre-commit-config.yaml` file.\n\n### To be implemented\n\n- [] Filter functionalities outside of --contains-file\n- [] Add visualization\n- [] Create documentation to apply commands to only modified repositories (like `gh pr create` commands)\n- [] Encapsulate typical workflow commands (like the one above) in a single command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmand-sauzay%2Fscribes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmand-sauzay%2Fscribes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmand-sauzay%2Fscribes/lists"}