{"id":20249609,"url":"https://github.com/jonico/pscale-example","last_synced_at":"2025-07-19T03:34:54.249Z","repository":{"id":147879490,"uuid":"429778706","full_name":"jonico/pscale-example","owner":"jonico","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-19T13:21:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-08T22:04:32.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/jonico.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":"2021-11-19T11:48:32.000Z","updated_at":"2021-11-19T13:22:00.000Z","dependencies_parsed_at":"2023-05-27T19:00:15.054Z","dependency_job_id":null,"html_url":"https://github.com/jonico/pscale-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"jonico/pscale-workflow-helper-scripts","purl":"pkg:github/jonico/pscale-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fpscale-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fpscale-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fpscale-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fpscale-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonico","download_url":"https://codeload.github.com/jonico/pscale-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonico%2Fpscale-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265883684,"owners_count":23843794,"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-14T09:54:38.306Z","updated_at":"2025-07-19T03:34:54.231Z","avatar_url":"https://github.com/jonico.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlanetScale pscale CLI helper scripts\n\nEver wanted to automate a complex task with [pscale CLI](https://github.com/planetscale/cli) and needed a way to wait until asynchronous operations like branch creations or deploy request merges finished? This is a collection of helper scripts around the PlanetScale CLI to synchronously\n* [wait for branch creation to be completed](wait-for-branch-readiness.sh)\n* [wait for deploy requests to be successfully merged](wait-for-deploy-request-merged.sh) (and get an update on the current migration status)\n* [connection string creation/parsing and extending scope of service tokens](create-database.sh)\n* examples on how to make use of those scripts ([branches](add-operation-column-and-index.sh), [credentials](create-database.sh), [deploy requests](merge-latest-open-deploy-request.sh))\n* [run pscale from a Docker container](https://github.com/jonico/pscale-cli-helper-scripts/blob/main/use-pscale-docker-image.sh) and still use your local config files, service tokens and port forwarding\n\n## Zero-setup Action workflows included :sparkles:\n\nIn case you like to see those helper scripts in action without any further manual configuration, just \n\n1. [Create a copy of this repo](https://github.com/jonico/pscale-cli-helper-scripts/generate) by clicking on the green 'Use this template' button or just [here](https://github.com/jonico/pscale-cli-helper-scripts/generate). Both private and public repo visibility work.\n\n![image](https://user-images.githubusercontent.com/1872314/141356169-d1dcc996-9e3f-41bc-b4cb-c96b5f0cb843.png)\n\n2. Create a PlanetScale account:  If you have not done already, [sign up here](https://auth.planetscale.com/sign-up) for a PlanetScale account, you can have one database for free. Do not create a database yet though, this step will be automated as part of the first Action workflow.\n\n3. Switch to the Actions tab in your repo\n\n![image](https://user-images.githubusercontent.com/1872314/142613710-73deb08c-9a73-4dad-b9bd-42f089b99edf.png)\n\n4. [Start the workflows manually](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow), in the displayed order.\n\n![image](https://user-images.githubusercontent.com/1872314/142615142-e60164a0-f441-47ee-b92e-ef20e22aca81.png)\n\n5. When you run the workflows, follow the output where it will ask you to authenticate to PlanetScale by clicking the displayed links.\n\n![image](https://user-images.githubusercontent.com/1872314/142614600-83d06471-b0bd-4c7a-81bb-d8836e547e78.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonico%2Fpscale-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonico%2Fpscale-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonico%2Fpscale-example/lists"}