A magit-flavoured client for Bitbucket Cloud and GitHub pull requests, inside Emacs.
- One list of every PR across your workspace — the ones waiting for your review, your own, your drafts — searchable with Helm.
- A PR detail view with comments, reviewers, changed files, commits and CI pipelines; reply, resolve, approve, merge without leaving the keyboard.
- Review comments on the code — drawn as overlays in your local checkout and in magit diffs.
- Safe checkouts — jump to the PR's local clone and switch branches with an autostash.
- Deploys — run a gated pipeline step as soon as the build reaches it, or merge and deploy in one keypress, and get notified when the deployment itself has finished.
As AI adoption grows, models improve and code throughput increases, code reviews stay an important part of the work. So I chose to build a great reviewing experience right inside my editor — one interface across the git platforms different companies use, often faster than their own web UIs.
On Emacs 30+, straight from GitHub with use-package. This is the configuration I use:
(use-package helm-git-platform
:vc (:url "https://github.com/flyck/helm-git-platform" :rev :newest)
:after (magit emojify)
;; Load eagerly so :config runs even when you start with C-c b.
:demand t
:bind ("C-c b" . gp-helm)
:custom
(gp-local-git-root "~/git") ; where your clones live
(gp-open-function #'magit-status) ; how a checkout is opened
(gp-checkout-clone-base "git@bitbucket.org:") ; clone missing repos from here
;; Optional: a script that presses a gated deploy step (see docs/deploys.md).
;; (gp-pipeline-deploy-script '("~/bin/gp-deploy"))
:init
;; macOS GUI Emacs does not see ~/.zshrc exports; this imports BITBUCKET_*.
(require 'bitbucket-env)
(bitbucket-env-load)
:config
(gp-watch-mode 1) ; PR count in the mode line + comment overlays in files
(gp-magit-mode 1)) ; PR comments inside magit diffsThen give it a Bitbucket API token (create one):
export BITBUCKET_WORKSPACE="your-workspace"
export BITBUCKET_USER_EMAIL="you@example.com"
export BITBUCKET_API_TOKEN="…"Using GitHub, Emacs 29 or older, or need the exact token scopes? See docs/setup.md.
Update later with M-x package-vc-upgrade RET helm-git-platform RET.
C-c b opens the PR list. When the frame is split it takes over only the current window.
| In the PR list | |
|---|---|
RET |
Open the PR's detail view |
C-c m |
Show or hide merged and declined PRs |
C-c g |
Reload |
| In the PR detail view | |
|---|---|
b |
Back to the PR list |
g |
Refresh |
d |
Show the PR's diff in Magit |
O |
Autostash, check out the PR branch and open the repo |
w |
Open the PR in the browser |
C / R / X |
New comment / reply to the comment at point / resolve it |
a / c |
Approve / request changes |
M |
Merge |
C-c M |
Merge, then deploy the merge build (e.g. to LIVE) |
T / A |
Run a pipeline step now / as soon as the build reaches it |
Keys that change the PR are capital letters, so a stray keypress while reading can't do damage. Every key is listed in docs/keys.md.
- Setup — install methods, credentials and token scopes, GitHub
- Usage — the PR list, the detail view, comments in magit, batched reviews
- Deploys — the deploy script, watchers, merge & deploy, notifications
- Optional features — what is on by default and how to switch it off
- Key reference — every key binding
- Platforms and limitations — Bitbucket vs GitHub, adding a forge
- Development — dev loop, tests, architecture