Skip to content

About

Terminal inbox and CLI for the GitHub pull requests that need your attention - review, approve, and merge without leaving the terminal

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

GitHub PR Attention

A native desktop inbox, terminal inbox, and report CLI for GitHub pull requests that need your attention.

pr-attention collects open pull requests where you are requested for review, assigned, mentioned, or the author. Use the TUI for hands-on review, or emit a text/JSON report for scripts, status checks, and daily planning.

Desktop app

Download the macOS ZIP or Linux AppImage for your architecture from the GitHub releases. On macOS, unzip and move PR Attention to Applications. The macOS builds are ad-hoc signed. On Linux, make the AppImage executable and launch it on a Vulkan-capable X11 or Wayland desktop with the system libxkbcommon and libxkbcommon-x11 runtime libraries. Drag the inbox header to move the window.

The desktop app follows your system’s light or dark appearance, including changes while the window is open. The terminal inbox uses your terminal background.

Updates

Release builds check for the latest stable GitHub release when you open the desktop app or terminal inbox. A newer version downloads in the background. The updater verifies its SHA-256 digest and replaces the installed app. Reopen the app to use the update. The installation directory must be writable.

Run pr-attention --update for an immediate CLI upgrade or pr-attention --version to print the installed version. Set PR_ATTENTION_AUTO_UPDATE=0 to disable startup checks. Source builds and scripted reports skip automatic updates.

Building on macOS

Build with stable Rust, Go 1.26.2 or newer, and Xcode with the Metal toolchain. From the repository root:

make desktop
open "desktop/target/PR Attention.app"

The local app bundle includes the Rust GPUI interface and the Go GitHub client. It uses your existing gh auth login session for github.com. To use an environment token, set GITHUB_TOKEN or GH_TOKEN and launch the executable from that shell:

"desktop/target/PR Attention.app/Contents/MacOS/pr-attention-desktop"

Choose a queue, search by repository, PR number, author, or title, and select a pull request to read its description, CI checks, and file patches. Use ⌘F to search, ⌥↑ / ⌥↓ to move between PRs, and ⌘R to refresh. The review form supports comments, approvals, change requests, squash merges, and closing. Reviews and merges include the commit you inspected.

Building on Linux

Install the native packages listed in .github/workflows/desktop.yml, then run desktop/linux/package.sh from the repository root. The script writes the AppImage to desktop/target/. Linux uses Ctrl+F, Ctrl+R, and Alt+↑ / Alt+↓.

Screenshots

Inbox

Inbox view

PR detail

PR detail view

Changed files

Changed files view

Requirements

  • Go 1.26+
  • A GitHub token with access to the repositories you want to inspect

Usage

export GITHUB_TOKEN=...
go run ./cmd/pr-attention

GH_TOKEN is also accepted.

Report Mode

Use --format text when you want a quick inbox snapshot without opening the interactive TUI:

go run ./cmd/pr-attention --format text --limit 10

Use --format json when another tool should consume the review inbox:

go run ./cmd/pr-attention --format json

Build

make build

The build copies the self-contained pr-attention binary to ~/.local/bin. Override the install location with LOCAL_BIN=/path/to/bin make build.

Keys

  • j / k or arrow keys: move selection
  • /: filter the PR list; press enter to apply, ctrl+u to clear while filtering
  • enter: open PR details
  • esc, b, backspace, or left arrow in detail view: return to the list
  • tab in detail view: switch between PR description and changed files
  • j / k in detail view: scroll PR description
  • r: refresh inbox
  • o: open selected PR in a browser
  • c: add an issue comment
  • a: approve the PR
  • x: request changes
  • m: merge the PR with squash merge
  • M: bulk merge all listed PRs with squash merge
  • d: close the PR without merging
  • esc: go back or cancel compose mode
  • ctrl+s: submit compose mode
  • q: quit

About

Terminal inbox and CLI for the GitHub pull requests that need your attention - review, approve, and merge without leaving the terminal

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages