Automatically make a demo video for every merged pull request
Turn a repo on and every pull request merged into main gets a narrated demo. Triggers, branch patterns, keyword filters, bots, and a dry run on your last 12 PRs.
Making a demo video by clicking a button is nice. Never having to click it is better.
The point of filming pull requests is that nobody has to think about it. Your agents open pull requests all day. If a video only exists when someone remembers to ask for one, most features will never get one. So Pullscene has automations: a rule on a repo that says when to film, what to make, and where to post it.
This post explains how they work, and the filters that keep them from filming things nobody wants to watch.
One sentence
An automation reads as a sentence. The default one, created when you turn a repo on, is:
When a pull request is merged into the default branch, record a Pull request demo and post it as a comment on the pull request.
Every part of it can change.
- When: a pull request is opened, merged, or labeled with a label you pick (
demoby default). - Into: the target branch.
*for any branch, an exact name likemain, or a pattern likerelease/*. - Record: one or more videos, each from a template.
- Post to: a comment on the pull request, Slack, Discord, or Linear.
In the app, the rule is drawn as a small chain of blocks: When, Only if, the videos, Post to. You click a block to edit it. The full sentence is written underneath, so you can read back exactly what will happen before you turn it on.
Which trigger to pick
Each trigger answers a different need.
Merged is the default for a reason. Once a pull request is merged, the feature is real. It is the right moment for a demo aimed at the team, management or customers: you are showing what changed in the product, not what might change.
Opened is for reviewers. The video arrives while the pull request is still under review, so it helps decide whether to merge. On GitLab, turning a draft merge request into a ready one counts as opening it.
Labeled gives a human the last word. Nothing is filmed until someone adds the label. Useful when only a few pull requests deserve a video, and nobody can predict which ones from their title.
Only if: the filters
A busy repo sees lots of pull requests nobody needs on film. Dependency bumps. Typo fixes. Half-finished experiments. Filming them costs credits and adds noise to the channel the videos go to.
So under the trigger there is an "Only if" block with a few plain rules.
- Skip if it says. Words that cancel the video if they appear in the title, the labels or the description of the pull request. The defaults are
[skip demo]andwip. Matching is on whole words, sowipdoesn't catchwipe. - Only if it says. Words that must appear, at least one of them. Leave it empty to film everything else.
- From and Never from. Everyone, or only certain authors; and authors to always skip. The app suggests names from the repo's recent pull requests, so you don't have to remember exact usernames.
- Also. Draft pull requests and pull requests opened by bots are ignored by default. You can allow either.
A pull request that is skipped costs nothing. The automation keeps the last reason it skipped one, in plain words, like it mentions "wip". When you wonder why a video never arrived, the answer is on the automation itself.
Test the rule before it runs
Filters are easy to get wrong. Too strict and nothing is ever filmed. Too loose and the Slack channel fills up with dependency updates.
So before you turn an automation on, the app runs it, read-only, on the last 12 pull requests of the repo. For each one it tells you what would have happened:
- Video: this one would have been filmed.
- Video once merged: it matches, but it is still open, and the rule waits for the merge.
- Skipped, with the reason: a word, an author, a draft, a bot.
- Not a match: wrong branch or wrong trigger.
Nothing is recorded and nothing is posted during this check. It is the same filtering code the real webhook uses, applied to pull requests you already know. If the list looks wrong, you change a filter and look again.
Up to four videos per pull request
One feature can matter to several people for different reasons. The developers want to see the edge cases. Management wants the outcome in thirty seconds. Sales wants the sentence to say to a prospect.
An automation can make up to four videos from the same pull request, each from its own template. And each video has its own destinations. A real setup could look like this:
- Pull request demo, posted as a comment on the pull request and to Slack
#product; - Sales brief, posted to Slack
#sales.
A workspace can connect up to ten Slack channels, each with its own name, so the sales video never lands in the engineering channel. Each video is made, counted and posted separately, and the message says which template it is. What each audience changes in the script is explained in One pull request, many audiences.
What happens when a pull request is merged
Turning an automation on installs a webhook on the repo, with the token of the person who turned it on. It listens to pull request events only, and each repo gets its own random secret, stored encrypted. The automation shows whether it is listening, or why not yet: installing a webhook needs admin rights on the repo, for example.
When a matching pull request comes in, the delivery is checked against that secret and deduplicated, so a retry from GitHub or GitLab never films twice. Then the same pipeline as a manual video runs on its own: the model reads the pull request and writes the script, the scenes are rehearsed, the app is recorded, the voice is added, and the video is posted. If a scene keeps failing in rehearsal, nothing is posted. The video waits for review instead, with a screenshot of what got stuck. How that rehearsal works is in Rehearse before you record.
If the person who turned the automation on leaves the workspace, their token is deleted with them. Nobody keeps acting on a repo under the name of someone who is gone; another member turns the automation back on with their own access. Disconnecting the repo removes the webhook.
Start with the default
Our advice is boring: turn the repo on and keep the default rule for a week. Merged into main, one Pull request demo, posted on the pull request. Watch what comes out. Then add a filter for the noise you actually see, and a second video for the audience that actually asks.
The goal is not more videos. It is that every feature worth showing gets shown, without anyone having to remember.