kosa8 cloud sandbox pr
Push a sandbox's changes and open a pull request on GitHub
Available from the next release (after v0.24.0). The current release, v0.24.0, does not have kosa8 cloud sandbox pr: run kosa8 version to see which one you have.
Usage#
kosa8 cloud sandbox pr ID
Commits and pushes the sandbox's changes (as kosa8 cloud sandbox push does) and opens a pull request into the repo's default branch, or --base. It opens as a draft unless --ready. Prints the pull request's URL.
Also known as: pull-request
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--base | string | the branch to merge into (default: the repo's default branch) | — |
--body | string | the pull request's description | — |
--branch | string | the branch to push to (default kosa8/<sandbox>) | — |
--open | bool | open the pull request in your browser | — |
--path | string | the repo's path in the sandbox, when it is not where --repo cloned it | — |
--ready | bool | open it ready for review, not as a draft | — |
--title | string | the pull request's title (default: from the commit) | — |
Example#
kosa8 cloud sandbox pr sbx_… kosa8 cloud sandbox pr sbx_… --title "Fix the login redirect" --body "Found by the agent" --ready kosa8 cloud sandbox pr sbx_… --base develop --open kosa8 cloud sandbox pr sbx_… --json | jq -r .url