omp-pr-tracker1.3.1
omp extension: track GitHub PRs opened or pushed to during a session
Built for omp
The author tagged this package oh-my-pi.
Reports 0
No reports yet.
Readme
omp-pr-tracker
An oh-my-pi (omp) extension that lists the GitHub pull requests opened or pushed to during the current session, in a widget above the prompt.
What it detects
- Created PRs:
gh pr create(viabashoreval), and thegithubtool'spr_createop (directly or throughwrite xd://github). - Pushes:
git pushoutput (To <remote>+ ref lines) on GitHub remotes, resolved to the branch's PR withgh pr list --head; and thegithubtool'spr_pushop. When the output hides that report (git push -q, output piped throughgrep/tail), the push is found in git's reflog instead, for the repos the command runs in or names by path (cd <dir>,git -C <dir>,~/…,/…). A directory held only in a shell variable can't be resolved; use/prs addfor those. - Subagents: PRs found by in-process subagents show up in the main session's list.
Tracked PRs are saved as session entries, so they survive resume and rewinds. Each row shows state (OPEN, DRAFT, MERGED, …) in GitHub's colors, and title. Both are refreshed at the end of every agent turn.
State icons
When omp uses Nerd Font symbols, each state is prefixed with GitHub's own Octicon (git-pull-request-draft, git-pull-request, git-merge, git-pull-request-closed). The plugin follows omp's symbol preset (theme.symbols.preset) instead of probing the terminal:
- omp switches to the
nerdpreset by itself when the terminal confirms Nerd Font support (Glyph Protocol), or when you setsymbolPreset: nerd. - With
unicodeorascii, labels are shown without icons, so terminals lacking the glyphs never show boxes. - Icons show as boxes? Your font predates these Octicons: install a current Nerd Font, or set
symbolPreset: unicodeto hide them.
Commands
| Command | Effect |
|---|---|
/prs |
Refresh title/state of every tracked PR |
/prs add <url> [url…] |
Track PRs the detector missed |
/prs toggle |
Hide or show the list |
Requirements
- omp
ghinstalled and authenticated. Lookups that fail only log a warning.- GitHub only (including Enterprise hosts reachable by
gh).
Install
omp plugin install omp-pr-tracker
Or through the ryok90-omp marketplace:
/marketplace add ryok90/omp-plugins
/marketplace install omp-pr-tracker@ryok90-omp
Restart omp afterwards. Upgrade with omp plugin upgrade omp-pr-tracker; turn it off with omp plugin disable omp-pr-tracker.
For local development, clone and link instead:
git clone https://github.com/ryok90/omp-pr-tracker.git
omp plugin link ./omp-pr-tracker
Notes
- The divider above the list follows the prompt's border colour by lazily importing an internal omp module. If a future omp moves it, the divider falls back to the theme's
bordercolour; nothing else breaks. - Session entries use the type
pr-tracker.opened; it is kept stable for compatibility with existing sessions.
License
MIT