DEVOPS
Teardown Preview Env When Its PR Closes
Listens for GitHub pull-request close/merge events and immediately tears down the matching Vercel preview deployment, commenting on the PR with what was removed.
How it runs
The automated pipeline, trigger to output.
- TriggerGitHub pull_request closed webhookGitHub
- LogicFilter merged/closed + read head branch
- ActionFind Vercel deploy for that branchVercel
- LogicConfirm it's a preview, not production
- ActionDelete the preview deploymentVercel
- OutputComment teardown result on the PRGitHub
What it does
Reacts the instant a pull request is merged or closed by deleting the preview environment tied to that branch, so dead previews never linger past the PR they belonged to. It comments back on the PR confirming the teardown.
When to use it
Use this for event-driven cleanup instead of a nightly sweep — the orphan never exists because it's reaped at the moment the PR closes. Best when each PR maps to exactly one preview deployment.
How it works
- 1A GitHub webhook fires on the `pull_request` closed event (covers both merged and abandoned PRs).
- 2A filter passes only closed/merged events and extracts the head branch name.
- 3Match Vercel deployments whose git branch equals the head branch.
- 4A logic step confirms the deployment is a `preview` and not promoted to production.
- 5Delete the matched preview deployment through the Vercel API.
- 6Comment on the closed PR with the deployment URL that was removed and the freed resources.
Set it up
What you configure once, before turning it on.
- 1Connect GitHubRepos, issues, pull requests, actions.
- 2Connect VercelDeploys, runtime logs, analytics.
- 3Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 4Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 5Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More DevOps workflows
Slack-approved pause for idle Hugging Face Spaces
On a daily scan it finds idle paid Spaces and posts an interactive Slack approval; on approve it pauses the Space and logs the decision to a GitHub issue audit trail.
Block costly Hugging Face Space hardware upgrades in PR review
When a pull request changes a Space's hardware config, it estimates the new monthly cost and posts a GitHub PR comment that flags upgrades crossing a budget ceiling.
Hugging Face Spaces idle-runtime sweep with auto-pause
On a schedule, scans all Hugging Face Spaces for ones running idle past a threshold, pauses them to stop billing, and posts a Slack summary with the estimated monthly savings.
Open a Zoom war-room from a Datadog multi-alert storm
When a Datadog monitor crosses a critical threshold, this workflow dedupes against active incidents, and only for a genuinely new outage it creates a Zoom bridge.
Auto-spin a Zoom war-room when PagerDuty hits SEV-1
When a PagerDuty incident escalates to a critical severity, this workflow creates a dedicated Zoom meeting and posts the bridge link to the incident's Slack channel so responders…
Spin up a war-room on demand from a Slack slash command
When an engineer runs a Slack command, this workflow creates a Zoom bridge, opens a tracking Sentry-linked incident, files a Linear issue for follow-up.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
