@maximhar/omp-github-action-watch
v13.13.2
Published
Oh My Pi plugin for watching GitHub Actions workflow runs from an OMP session.
Downloads
53
Maintainers
Readme
@maximhar/omp-github-action-watch
Oh My Pi plugin for watching GitHub Actions workflow runs from an active OMP session.
It attaches a session-scoped watcher to a workflow run, polls GitHub periodically, and emits follow-up updates as the run moves through queued, in_progress, and completed states. Notifications include the workflow title, branch, commit SHA, run attempt, and the currently running or queued child jobs when GitHub exposes that context.
Features
- Session-scoped workflow run watches
- Tool-driven start/stop controls
- Compact follow-up notifications inside OMP
- Expanded render with workflow metadata and job context
- Automatic cleanup when the session switches, branches, or shuts down
- Targeted test coverage for API mapping, rendering, and watch state transitions
Requirements
- Bun >= 1.3.7
- Oh My Pi /
@oh-my-pi/pi-coding-agentv13 - GitHub CLI (
gh) installed and authenticated withgh auth login
Install
From this repository
Until the package is published to npm, install it directly from Git:
omp plugin install git+https://github.com/maximhar/omp-github-action-watcher.gitLocal development link
If you are iterating on the plugin locally:
cd /path/to/omp-github-action-watcher
bun install
bun link
omp plugin install @maximhar/omp-github-action-watchYou can also link the working tree directly:
omp plugin link /path/to/omp-github-action-watcherUsage
Start watching a workflow run
watch_github_action_run owner=payhawk repo=emi-service run_id=23532645155Stop watching
By watch id:
stop_github_action_watch watch_id=<watch-id>By repository + run id:
stop_github_action_watch owner=payhawk repo=emi-service run_id=23532645155Inspect active watches inside OMP
/github-action-watch list
/github-action-watch stop <watch-id>Development
bun install
bun run verifyThe extension entry point is src/extension.ts.
Release
- Pushes to
mainand pull requests run CI, verify the package, and build an npm tarball artifact. - Publishing is handled by GitHub Actions when you publish a GitHub Release, or manually via the
Publish to npmworkflow. - The publish workflow uses the repository
NPM_TOKENsecret and runsnpm publish --provenance.
Repository layout
src/
extension.ts # OMP extension registration and tool wiring
github-api.ts # GitHub CLI integration and workflow/job mapping
render.ts # Compact and expanded message rendering
watch-format.ts # Human-readable summaries and detail lines
watch-registry.ts # Polling, diffing, and lifecycle management
types.ts # Shared types
test/
github-api.test.ts
render.test.ts
watch-registry.test.tsLicense
MIT
