DEVOPS

File a flag-removal follow-up when a feature PR merges

Listens for merged PRs that introduce a new feature flag and immediately files a Linear follow-up ticket with a removal-by date so the flag is never forgotten after rollout.

CategoryDevOps
Enginesim
Difficultybeginner
Triggerwebhook
Steps4
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPR merged webhookGitHubGitHub
  • LogicContinue only if PR added a new flag
  • ActionCreate dated removal follow-up issueLinearLinear
  • OutputDM the author about the deadlineSlack

What it does

Closes the loop at flag birth instead of flag death. The moment a PR that adds a new feature flag merges, this workflow records the flag and schedules its own retirement by creating a dated follow-up ticket, so every temporary flag has an owner and a deadline from day one.

When to use it

When the real problem is that flags get created and then orphaned. Use this to enforce a discipline where introducing a flag automatically creates the obligation to remove it, preventing debt before it accumulates.

How it works

  1. 1A GitHub webhook fires on a merged pull request.
  2. 2A logic step inspects the diff and continues only if the PR added a new flag definition.
  3. 3The flag name, author, and merge date are extracted.
  4. 4A Linear issue is created assigned to the PR author, due on the configured removal-by date, tagged `flag-debt`.
  5. 5A Slack DM notifies the author that their flag has a retirement deadline.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect LinearIssues, projects, cycles, triage.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  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.