DEVOPS

On Rollout PR Merge, Schedule a Flag Cleanup Reminder

When a pull request that flips a flag to 100% is merged, records the flag and starts a countdown; once the configured soak period passes with the flag still fully on, it files…

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerRollout-labeled PR mergedGitHubGitHub
  • ActionRecord flag, owner, and merge dateHTTP webhook
  • LogicWait out the soak period
  • ActionRe-check flag rollout stateHTTP webhook
  • LogicProceed only if still 100% on
  • OutputOpen Linear cleanup ticket linked to PRLinearLinear

What it does

This workflow catches flags at the moment they hit full rollout. When a GitHub PR labeled as a rollout merges, it captures the flag key and start date, then later checks whether the flag is still 100% after the soak window and, if so, opens a Linear ticket to retire it.

When to use it

Use it when rollouts are tied to PRs and you want cleanup queued at the exact moment a flag graduates, rather than discovered weeks later in a broad audit. It links each cleanup ticket back to the originating rollout PR.

How it works

  1. 1A GitHub event trigger fires when a PR with the rollout label is merged.
  2. 2An action records the flag key, owner, and merge date to a tracking store.
  3. 3A logic step waits out the configured soak period.
  4. 4An action re-checks the flag state via the flag service.
  5. 5A logic step proceeds only if the flag is still 100% on.
  6. 6An action opens a Linear cleanup ticket referencing the original PR.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect HTTP webhookTrigger any URL on agent actions.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.