PR Workflow
How to navigate from the PR dashboard to CI details and open a PR in your editor.
The git-switchboard pr command opens a full PR dashboard that lets you
track open pull requests across all your GitHub repositories, inspect CI status and
review state, and jump straight into a local worktree — all without leaving the
terminal.
PR Dashboard
Run git-switchboard pr to open the dashboard. Each row shows one open
pull request with live CI and review badges. Rows are colour-coded: a green dot means
all checks passed, amber is pending, and red signals a failure. The review badge
shows whether the PR is approved, has changes requested, or is waiting for reviewers.
Use j/k or the arrow keys to move between rows. Press c on any PR to fetch or refresh its CI status. Press r to retry failed checks (only shown when the selected PR has failures). Use / to filter by title or repo, and s to open the sort modal.
PR Detail View
Press Enter on any PR to open its detail view. This shows all CI check runs with pass/fail icons, the time each check took, and the current review state. Checks are sorted so failures appear first.
From the detail view you can:
- Press Enter on a check run to open its logs in your browser, or press Enter at the top to open the PR in your editor.
- Press c to copy the logs of the selected check to your clipboard.
- Press r to re-run failed checks via the GitHub API.
- Press w to toggle watch mode — the view will auto-refresh CI until all checks complete.
- Press Left, Backspace, or Esc to return to the dashboard.
Opening a PR in Your Editor
When you press Enter at the top of the detail view (or on the PR row in the dashboard), git-switchboard scans your local filesystem for existing clones of the repository. If it finds one or more, the clone prompt appears so you can choose where to open the PR.
The list shows every local clone, indicating whether it's a worktree, whether it's clean, and whether it already has the PR branch checked out. Select an existing clone and press Enter to check out the branch and open your editor there. Choose + Create new worktree to type a path for a fresh worktree — the branch will be checked out automatically.
If no local clone exists, git-switchboard will prompt you to clone the repository before opening it.