Synopsis
Arguments
What it does
- Finds the git repository root and resolves the repo name from its
originremote. - Looks up the repository’s numeric GitHub id with
gh api repos/{owner}/{repo}. TheghCLI must be installed and authenticated with read access to the repository. - 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.
- Writes a GitHub Actions workflow file to
.github/workflows/murmur-events.yamlat the repository root, with the webhook URL and repo token baked in. An existing file is overwritten.
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
Errors
Related
- Events: how events reach agents
murmur login: sign in and select your tenant- Catalog: repo-config: per-repo configuration in the catalog