Skip to main content
Installs a GitHub Actions workflow that forwards repository events (pushes, PR comments, CI results, reviews) to the murmur webhook. Agents watching branches in this repo receive those events in real time.

Synopsis

Arguments

What it does

  1. Finds the git repository root and resolves the repo name from its origin remote.
  2. Looks up the repository’s numeric GitHub id with gh api repos/{owner}/{repo}. The gh CLI must be installed and authenticated with read access to the repository.
  3. Mints a repo token via the murmur API, scoped to this repo (by name and id) and tenant. The webhook accepts events only from the repository with that id, so another repository that later takes the same name cannot use the token.
  4. Writes a GitHub Actions workflow file to .github/workflows/murmur-events.yaml at the repository root, with the webhook URL and repo token baked in. An existing file is overwritten.
After the command completes, commit and push the workflow file to activate event delivery.
A workflow file installed by an earlier version of murmur install-repo carries a token that names the repository only. Run the command again and commit the new file to bind the token to the repository’s id.

Events forwarded

The installed workflow triggers on these GitHub events and forwards them to the webhook:
Repos owned by a GitHub App tenant receive events through the App webhook directly. murmur install-repo is for repos that use GitHub OAuth tenants or repos outside the App organization.

Examples

Install event delivery for the current repo

Then commit and push:

Errors