# kosa8 github

Connect GitHub once, then start cloud sandboxes from your repos and open pull requests

> Available from the next release (after v0.24.0). The current release, v0.24.0, does not have `kosa8 github`: run `kosa8 version` to see which one you have.

Connect GitHub once (the kosa8 GitHub App, installed on the repos you choose) and
every kosa8 surface can start a cloud sandbox or run from a repo and send changes
back as a branch or a pull request. You never paste a token, and the sandbox never
holds one: kosa8 Cloud mints a short-lived token for one repo and one operation
(read to clone, write to push or open a pull request) and runs git with it.

With no subcommand, shows whether GitHub is connected and to which accounts.

## Example

```
  kosa8 github                          # connected? which accounts, how many repos
  kosa8 github connect                  # install the kosa8 GitHub App in your browser
  kosa8 github repos api                # repos whose name has "api"
  kosa8 cloud sandbox create --repo acme/app@main
  kosa8 cloud sandbox create --repo .   # this checkout's repo and branch
  kosa8 run --repo acme/app "npm ci && npm test"
  kosa8 cloud sandbox pr sbx_… --title "Fix the login bug"
```

## Subcommands

- [`kosa8 github branches`](https://docs.kosa8.com/reference/github-branches.md): List a repo's branches (the first 100)
- [`kosa8 github connect`](https://docs.kosa8.com/reference/github-connect.md): Install the kosa8 GitHub App in your browser and wait until it is connected
- [`kosa8 github disconnect`](https://docs.kosa8.com/reference/github-disconnect.md): Stop kosa8 using a GitHub installation (kosa8 github lists them)
- [`kosa8 github repos`](https://docs.kosa8.com/reference/github-repos.md): List the repos kosa8 can reach, most recently pushed first
- [`kosa8 github runners`](https://docs.kosa8.com/reference/github-runners.md): Run a repo's GitHub Actions jobs on kosa8 (runs-on: kosa8): list, enable, disable

---
Source: https://docs.kosa8.com/reference/github/
