Skip to content

maximhar/omp-github-action-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omp-github-action-watcher

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-agent v13
  • GitHub CLI (gh) installed and authenticated with gh auth login

Install

From npm

Install the published package directly:

omp plugin install omp-github-action-watcher

Local development link

If you are iterating on the plugin locally:

cd /path/to/omp-github-action-watcher
bun install
bun link
omp plugin install omp-github-action-watcher

You can also link the working tree directly:

omp plugin link /path/to/omp-github-action-watcher

Usage

Start watching a workflow run

watch_github_action_run owner=payhawk repo=emi-service run_id=23532645155

Stop 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=23532645155

Inspect active watches inside OMP

/github-action-watch list
/github-action-watch stop <watch-id>

Development

bun install
bun run verify

The extension entry point is src/extension.ts.

Release

  • Pushes to main and 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 npm workflow.
  • The repo version is now anchored at 1.0.0; each successful npm publish auto-increments the patch version and commits the new published version back to main.
  • The publish workflow uses the repository NPM_TOKEN secret and runs npm 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.ts

License

MIT

About

Oh My Pi plugin for watching GitHub Actions workflow runs from OMP sessions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors