Self-heal modes
There are two ways to trigger self-heal on a video:On schedule
Regenerate the video on a recurring schedule—weekly or monthly. Demomatic automatically re-records and replaces the video at the configured frequency.
On GitHub PR
Regenerate the video when a pull request is opened or merged in your connected GitHub repository. Use this to keep demos in sync with code changes before they ship.
Frequency options
When using scheduled self-heal, you control how often videos regenerate. The available options are:weekly— regenerates once per weekmonthly— regenerates once per month
weekly for fast-moving products or demos of frequently updated features, and monthly for more stable parts of your application.
How to enable self-heal
1
Open a video
Navigate to the video in your library that you want to keep up to date.
2
Enable self-heal
Toggle Self-heal on. This enables the
self_heal_enabled flag on the video.3
Choose a mode
Select On schedule, On GitHub PR, or both.
- For scheduled self-heal, choose On schedule and set a frequency (weekly or monthly).
- For PR-based self-heal, choose On GitHub PR and make sure you have a GitHub repository connected.
GitHub PR-based self-heal
Whenself_heal_on_pr is enabled, Demomatic monitors your connected GitHub repository for pull request activity. When a relevant PR is detected, Demomatic regenerates the video and posts a comment to the PR with a link to the updated demo.
This gives your team a way to review demo accuracy as part of the code review process.
PR-based self-heal requires a GitHub integration. See the GitHub integration guide to connect your repository.
