How it works
1
Install the GitHub App
Connect Demomatic to your GitHub account by installing the GitHub App on the repositories you want to watch.
2
Enable self-heal on a video
Mark individual videos with
self_heal_on_pr: true. When a pull request event matches a connected repository, Demomatic regenerates those videos.3
GitHub sends webhooks
When you open or merge a pull request, GitHub sends a webhook to Demomatic. Demomatic processes the event and queues demo regeneration jobs for matching videos.
Install the GitHub App
Navigate to the GitHub begin-install endpoint while authenticated. Demomatic creates a short-lived install intent and redirects you to GitHub’s app installation page:You must be signed in to your Demomatic account before initiating the install. The install intent expires after 15 minutes.
Enable auto-regeneration on a video
After installing the GitHub App, mark the videos you want to auto-update when a PR is opened or merged. Setself_heal_on_pr to true on the video:
self_heal_on_pr: true are included in GitHub-triggered regeneration runs.
Webhook events handled
Demomatic processes the following GitHub webhook events:Disconnect the GitHub integration
You can disconnect the GitHub App at any time. Use either endpoint: DELETE with query parameter:domain_id to scope the request to the correct account. Disconnecting removes the GitHub integration for the entire account associated with that domain.
