pi-pr-status
v0.3.0
Published
A Pi extension that shows the current PR link, CI check status, and unresolved review comments in the footer status bar
Maintainers
Readme
pi-pr-status
A Pi extension that shows your current PR's status right in the footer — so you always know which PR you're working on, whether CI is green, and if there are review comments to address.
What it shows
When your current git branch has an open pull request, the footer displays:
🟢 PR #42 · ✅ 5 checks passed · https://github.com/owner/repo/pull/42CI failures?
🟢 PR #42 · ❌ 2/5 checks failed · https://github.com/owner/repo/pull/42Checks still running?
🟢 PR #42 · ⏳ 3/5 checks pending · https://github.com/owner/repo/pull/42Unresolved review comments?
🟢 PR #42 · ✅ 5 checks passed · 💬 3 unresolved · https://github.com/owner/repo/pull/42PR state icons:
| Icon | State | |------|-------| | 🟢 | Open | | 🟣 | Merged | | 🔴 | Closed |
When there's no PR for the current branch, nothing is shown.
Requirements
- Pi coding agent
- GitHub CLI (
gh) — authenticated withgh auth login
Install
pi install npm:pi-pr-statusOr try it without installing:
pi -e npm:pi-pr-statusYou can also install from git:
pi install git:github.com/bruno-garcia/pi-pr-statusHow it works
- Detects the current git branch
- Runs
gh pr viewto find the associated pull request - Parses CI status check results (pass / fail / pending)
- Queries unresolved review threads via the GitHub GraphQL API
- Displays everything in the pi footer status bar
The extension polls every 30 seconds to pick up CI and review changes. Repo metadata is cached so only two API calls are made per poll (one for PR + checks, one GraphQL query for review threads). When no PR exists for the branch, no API calls are made after the initial check.
Development
npm install
npm testLicense
MIT
