# kosa8 cloud sandbox pr

Push a sandbox's changes and open a pull request on GitHub

## 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`

## Flags

| 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
```

---
Source: https://docs.kosa8.com/reference/cloud-sandbox-pr/
