DEVOPS

Block PRs that add flags with a missing or already-expired kill-date

On every pull request, checks any newly added feature flags for a valid future kill-date and posts a blocking review comment if a flag has no kill-date or one that's already…

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerPull request opened or updatedGitHubGitHub
  • ActionFetch PR diff and extract newly added flagsGitHubGitHub
  • LogicValidate each flag has a future kill-date
  • ActionPost requested-changes review on failuresGitHubGitHub
  • OutputSet pass/fail commit status on the PRGitHubGitHub

What it does

Stops new flag debt at the door. When a PR opens, it inspects the diff for newly introduced feature-flag references and verifies each one carries a `@kill-date` annotation set to a future date. Flags missing the annotation, or born already expired, get called out in a PR review that fails the check.

When to use it

When you want to enforce a flag-hygiene policy without manual review nagging. It guarantees every flag enters the codebase with a planned expiry, so the scanning janitor downstream always has a date to act on.

How it works

  1. 1A GitHub pull-request event triggers the run.
  2. 2The flow fetches the PR diff and extracts flag keys added in this change.
  3. 3A logic step validates each new flag: annotation present, date parseable, and in the future.
  4. 4If any flag fails, it posts a requested-changes review listing the offending flags and the policy.
  5. 5It sets the commit status to pass or fail so the merge gate reflects the result.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  3. 3
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  4. 4
    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.