Name
pullpen
A terminal dashboard for pull requests on GitHub and GitLab.
It lists the pull requests a developer is involved in, shows which are ready to merge, and merges them from the keyboard.
Quick start
$ make install-binarySections. Each name in the top row is a section: a saved search. The number beside it is how many pull requests match, and the active section is the coloured one. Click Auto-merge armed, Deploys or Merged in the model to open that screen. Mine and Needs my review are lists like this one.
- h l
- previous and next section
- 1–9
- jump to a section
Query. The search behind the active section. Here is:open matches every open pull request in the repositories pullpen watches. Sections and their searches are set in config.toml, and the search syntax is the same for GitHub and GitLab.
Service. Where the pull request lives: gh is GitHub and gl is GitLab. A GitLab merge request is listed the same way as a GitHub pull request, so both appear in one list.
Readiness. One symbol for the state of the pull request: ✓ ready to merge, ○ waiting on checks or a review, ✗ checks failing, ≠ merge conflict, ◌ draft.
- M
- merge, after one key to confirm
- u
- update the branch from the branch it merges into
Auto-merge. A ◆ means auto-merge is on: GitHub or GitLab merges the pull request by itself once it is ready.
- A
- turn auto-merge on or off
Number and title. The number and title of the pull request. The bar at the left edge marks the selected row.
- j k
- down and up
- Enter
- open the pull request
- o
- open it in the browser
- /
- filter by title
- Space
- mark a row, so the next action applies to every marked row
Repository. The repository the pull request belongs to.
Opened by an agent. A ◇ marks a pull request opened by an AI agent or a bot.
Reviews. Reviews, as approved/needed: 1/2 means one approval so far, of the two required.
- a
- approve
- c
- comment
Age. How long the pull request has been open: m is minutes, h hours, d days and w weeks.
Preview. On a wide terminal the right side previews the selected row, to answer one question: is it safe to merge? The first lines repeat the title, service, repository, number, author and age.
- p
- show or hide the preview
Verdict. The state of the pull request with a sentence saying what happens next. This one is waiting: it will be squash-merged when the remaining reviewer approves.
Checks, reviews, conflicts, auto-merge. The four things the verdict is based on: how many checks passed, how many reviews are in, whether the branch conflicts with the branch it merges into, and whether auto-merge is on.
The change. The branch and the branch it merges into, the number of lines added and removed, the number of files, and the start of the description.
Activity. Recent events on the pull request, newest first: approvals, auto-merge being turned on, pushes and review requests.
Status line. From left to right: the mode, where the cursor is, how many pull requests have auto-merge on, how many are failing, the time since the last sync, and a ✓ or ✗ for each service. "1 broken" means a branch is failing after a merge; it shows on every screen until the branch passes again.
- :
- open a command line on the bottom row
- ?
- list every key
- q
- back, or quit
Where this is. Pressing Enter on a row of a list opens the pull request on this screen. The top row says where it came from: the section, the service, the repository and the number. On the right are its position in that list and when it was last updated.
- q
- back to the list
Title and change. The title, then one line about the change: the author (◇ marks an agent or bot), the branch and the branch it merges into, the lines added and removed, the number of files, and when it was opened.
Verdict. The verdict is one word, READY, WAITING or BLOCKED, with a sentence saying what happens next. It is the same judgement as the readiness symbol in the list.
- M
- merge, after one key to confirm
- A
- turn auto-merge on or off
Checks, reviews, conflicts, auto-merge. The four things the verdict is based on. Checks: how many passed and how long they took. Reviews: how many are required and who has approved. Conflicts: whether the branch is up to date with the branch it merges into. Auto-merge: whether it is on, with which merge method, and who turned it on.
Overview. The left side is the overview: the description of the pull request, then its checks, then the conversation.
- h l
- move between the overview and the diff
Checks. Each CI check with its result and how long it took. Passed checks beyond the first few are folded into one line.
- zo zc
- unfold and fold the checks
- w
- watch the pipeline run live
Diff. The right side is the diff, one file at a time. The top line names the file, its place among the changed files, and the lines added and removed in it. Added lines are marked + and removed lines -.
- n b
- next and previous file
- F
- list every file to jump to
- ]c [c
- next and previous change within the file
- d
- widen the diff
Status line. From left to right: the mode, where the cursor is, how many pull requests have auto-merge on, how many are failing, the time since the last sync, and a ✓ or ✗ for each service. "1 broken" means a branch is failing after a merge; it shows on every screen until the branch passes again.
- :
- open a command line on the bottom row
- ?
- list every key
- q
- back, or quit
Key hints. The bottom row is the command line. When nothing is being typed it lists the keys that apply to what is on screen.
Auto-merge armed. This section lists every pull request that has auto-merge on, grouped by what each one needs. It is meant for coming back to: turn auto-merge on for what is only waiting, leave, and read the outcome here.
Query. The search behind this section: is:armed matches every pull request with auto-merge on.
Needs attention. Pull requests that will not merge by themselves any more: a check failed, a conflict appeared, changes were requested, or the service turned auto-merge off. The right side names the reason and how long it has been that way.
- Enter
- open the pull request
- A
- turn auto-merge off
- w
- watch its pipeline
Waiting. Pull requests still on their way. The right side says what each one is waiting for: CI, a review from a named person, or its place in a merge train, and for how long.
Status line. From left to right: the mode, where the cursor is, how many pull requests have auto-merge on, how many are failing, the time since the last sync, and a ✓ or ✗ for each service. "1 broken" means a branch is failing after a merge; it shows on every screen until the branch passes again.
- :
- open a command line on the bottom row
- ?
- list every key
- q
- back, or quit
Summary. A one-line summary: how many pull requests merged since pullpen was last open and where they are listed, how many need attention and how many are still waiting. The keys for this screen are on the right. When a waiting pull request merges or needs attention, pullpen sounds the terminal bell and sends a desktop notification, once.
Deploys. This section answers one question: what is deploying right now, and did it work? Each row is a repository and a branch that merges landed on this week. It shows the newest merge on that branch that started a pipeline, and what that pipeline is doing. The number on the tab counts what is deploying now.
Query. The search behind this section: pull requests merged in the last seven days. Merged uses the same search and shows it as a plain list.
Deploying. The pipeline is running. The right side says how many jobs have passed, which job is running, and for how long.
- Enter
- open the pipeline: every job and its log (not part of this model)
- o
- open the pipeline in the browser
Failing. The pipeline failed and the newest pipeline on that branch still fails. The job that failed is named. This is the "1 broken" in the status line.
- D
- dismiss a failure that has been accepted; it moves to deployed
Deployed. The pipeline passed. A row also lands here when it failed and a later change fixed the branch, or when the failure was dismissed.
Status line. From left to right: the mode, where the cursor is, how many pull requests have auto-merge on, how many are failing, the time since the last sync, and a ✓ or ✗ for each service. "1 broken" means a branch is failing after a merge; it shows on every screen until the branch passes again.
- :
- open a command line on the bottom row
- ?
- list every key
- q
- back, or quit
Summary. Counts for each group on the left, and the keys for this screen on the right.
Merged. This section is the record: every pull request that merged this week, newest first, each with the result of the pipeline its merge started.
- Enter
- open the pull request
Pipeline result. On this screen the symbol is the pipeline, not the pull request: ○ running, ✓ passed, ✗ failed, a dimmed ✗ for failed but fixed since, and ● when no pipeline ran.
Number, title and repository. The pull request that merged and the repository it merged into.
What the pipeline did. The result in words: how many jobs have passed and which is running, or which job failed, and how long ago the merge happened. A failure stays "failed" here whatever the branch has done since; the Deploys screen is where a failing branch is judged and dealt with.
- w
- open the pipeline for a merge
Status line. From left to right: the mode, where the cursor is, how many pull requests have auto-merge on, how many are failing, the time since the last sync, and a ✓ or ✗ for each service. "1 broken" means a branch is failing after a merge; it shows on every screen until the branch passes again.
- :
- open a command line on the bottom row
- ?
- list every key
- q
- back, or quit
Summary. The number of merges listed, and the keys for this screen. Typing :clear on the command line removes every finished row that is not failing.
Overview
pullpen is a terminal application for keeping track of pull requests. It collects pull requests from GitHub and merge requests from GitLab into one screen and sorts them into tabs, such as the user’s own pull requests, those waiting for the user’s review, and those opened by AI agents.
Each row shows whether the pull request is ready to merge, still waiting, failing its checks, in conflict or a draft. From the same screen a pull request can be merged, approved, commented on, closed or checked out. A pull request that is not ready yet can be set to merge automatically once its checks pass.
pullpen is meant for people who have many pull requests to handle, in particular when AI agents open a lot of them. A typical session is to review the list, merge what is ready, turn on auto-merge for the rest, and check back later.
Features
- GitHub and GitLab in one place
- Pull requests from GitHub and merge requests from GitLab appear together in the same lists.
- Status at a glance
- A symbol at the start of each row gives the state of the pull request: ✓ ready to merge, ○ waiting on checks or review, ✗ checks failing, ≠ merge conflict, ◌ draft. A ◇ marks a pull request opened by an AI agent or a bot.
- Custom lists
- Each tab is a saved search, for example pull requests waiting for a review, pull requests opened by agents, or pull requests whose checks are failing. The search syntax is the same for both services. Six tabs are set up by default and can be replaced.
- Merging from the keyboard
- One key merges a pull request after a confirmation, using the merge method set for that repository. If the pull request is still waiting on checks, pullpen offers to turn on auto-merge, so it merges by itself once they pass.
- Auto-merge tracking
- One tab lists every pull request that has auto-merge turned on, split into those that need attention and those still waiting, with a count of how many have merged. The terminal bell sounds when one merges or needs attention.
- Several at once
- Several rows can be selected and then approved, commented on, closed or checked out together.
- Deploys and CI runs
- After a merge, pullpen shows the deploy that follows it. CI pipelines can be opened down to the log of a single job.
- No new login
- pullpen uses the existing login of the gh or glab command-line tools and stores no access token of its own.
Install
# download pullpen_<os>_<arch> for your platform from the v0.2.7 release
# (.tar.gz on Linux and macOS, .zip on Windows), then put pullpen on your PATH
tar xzf pullpen_*.tar.gzgit clone https://github.com/lampseen/pullpen && cd pullpen
make install-binaryLimits and guarantees
- pullpen does not create pull requests, show diffs for line-by-line code review, or manage branches. One key opens the pull request in the browser for those.
- Nothing keeps running in the background.
- No telemetry.
- Access tokens are never written to the log or the cache and never shown on screen.
About the name
In baseball, the bullpen is where relief pitchers warm up until they are called into the game. pullpen is where pull requests wait until they are ready to merge.