DEVOPS

Auto-archive a shipped flag when its cleanup PR merges

When a flag-removal pull request is merged in GitHub, this archives the corresponding flag in the provider and posts a confirmation in the team Slack channel so the flag and its…

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps4
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub pull request mergedGitHubGitHub
  • LogicConfirm it's a cleanup PR and extract the flag key
  • ActionArchive the flag in the providerHTTP webhook
  • OutputPost retirement confirmation to SlackSlack

What it does

Closes the loop on flag retirement. The moment a cleanup PR is merged, it parses the flag key from the PR, archives that flag in your flag provider so it can no longer be evaluated, and announces the retirement in Slack. This guarantees the flag definition and the code that read it are removed in the same beat — no orphaned flags left live after the code is gone.

When to use it

Use it as the merge-side counterpart to a cleanup sweep. Ideal for teams that delete flag code in PRs but keep forgetting to archive the flag itself in the dashboard, leaving dead flags evaluating forever.

How it works

  1. 1A GitHub pull-request-merged event triggers the flow.
  2. 2A logic step confirms the PR is a flag-cleanup PR and extracts the flag key from its body or branch.
  3. 3An HTTP call archives that flag in the provider.
  4. 4Slack posts a retirement confirmation with the PR and flag key to the team channel.

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 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.