Skip to content

Pull Requests & CI

When an agent finishes, the last mile is shipping it: open a PR, wait for CI, review, merge. Lattis keeps all of that in the workspace, next to the agent that did the work, so you don’t bounce between a browser, a terminal, and back.

PR and CI features use Lattis’s built-in GitHub integration. Connect your account once, in Settings › Accounts › GitHub (or during first-run onboarding):

  1. Click Connect GitHub. Lattis shows a short code.
  2. Enter the code at github.com/login/device and approve.

That’s it — no GitHub CLI required. If you previously used the gh CLI, Lattis imports its sign-in automatically on first launch after the update.

With GitHub connected, Lattis reads each branch’s PR and check status and enables the actions below. Without it, branches still work as worktrees — you just won’t see PR state, and PR actions point you at the connect card.

Right-click a branch (or use its action menu) for everything you need to move work along:

ActionWhat it does
Pull LatestPull the branch’s remote changes into the worktree.
Pull Latest MainBring the base branch up to date.
Commit / Commit and PushCommit the worktree’s changes, optionally pushing.
PushPush commits to the remote.
Open Pull RequestCreate a PR for the branch.
Request ReviewAsk people or a team to review it (see below).
Mark Ready for ReviewFlip a draft PR to ready.
View PR in BrowserOpen the PR on GitHub.
Merge Pull RequestMerge it (see below).
Close Pull RequestClose without merging.
Copy Branch Name / Delete local branchHousekeeping.

The menu adapts to context — you’ll see Open Pull Request when there’s no PR yet, and Mark Ready for Review only while a PR is a draft. Request Review appears on a non-draft PR, because GitHub takes no review request for a draft.

When you open a pull request that nobody has been asked to review, Lattis prompts you to fix that. An agent that runs gh pr create in its own terminal raises the same prompt, because Lattis detects the pull request on GitHub rather than hooking its own button. You can also raise it yourself at any time, from the branch menu or the command palette, with Request Review.

Reviewers are picked in the app, not in a browser tab. The picker opens ranked, with the reason on each row:

GroupWho it holds
Wrote this codeWhoever wrote the lines this PR changes, from your local git history.
Reviews your workWhoever reviewed your recent pull requests in this repository.
GitHub suggestsGitHub’s own suggestion.
TeamsYour organization’s teams.
Everyone elseThe rest of the roster.

The first group is the reason the picker beats the web UI: it answers “who knows this code” from your own repository, offline, in milliseconds.

Teams need the read:org scope. Connect (or reconnect) GitHub in Settings › Accounts to grant it. Without the scope the picker hides the Teams group and the rest of the list works as usual.

To review the pull requests other people send you, see Code Review.

Each branch’s PR icon is colored by its state, so you can triage a whole project from the sidebar:

  • Green — checks passed, merges cleanly. Ready to ship.
  • Violet — checks passed; just needs a human review.
  • Amber — CI still running.
  • Red — blocked: CI failed, conflicts, changes requested, or the branch is behind a protected base.
  • Muted — draft.

See Stoplights & Status for the full color key.

Choosing Merge Pull Request asks you to confirm, then in one step:

Merges the PR using the repository’s default merge method, deletes the remote branch, and removes the local branch and its worktree.

It’s worktree-aware, so merging one branch won’t disturb the other checkouts you have open. Once it’s done, the branch drops out of the sidebar and you’re clear to move on to the next one.

  1. An agent finishes and you Commit and Push, then Open Pull Request.
  2. Lattis prompts you to Request Review, and you pick the people who wrote the code you changed.
  3. The PR icon goes amber while CI runs, then violet when checks pass.
  4. Your reviewer’s copy of Lattis lists the request in PENDING REVIEWS, and one click puts them in the Review layout.
  5. You read the diff in place and Merge.

Multiply that across a fleet of branches and the sidebar becomes your release board.

Pull-request features work with repositories hosted on github.com whose origin remote points at the repository itself:

  • GitHub Enterprise (and any other host) isn’t supported. Lattis will tell you so rather than quietly query the wrong server.
  • Forks aren’t supported yet: PR actions on a fork clone would target the fork rather than the upstream repository, so Lattis refuses and points you at GitHub (or gh) for those.