ENGINEERING

Triage GitLab MR risk and route to the right reviewers in Slack

On MR open, it scores risk from changed paths, diff size, and migration presence, then routes a focused review request to the owning team's Slack channel with the rationale.

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab MR opened webhookGitLabGitLab
  • ActionFetch changed files and diff statsGitLabGitLab
  • ActionMap modules and score risk signalsShell
  • LogicAssign risk tier and resolve owning team
  • OutputRoute review request to team Slack channelSlack

What it does

This workflow decides how much attention a merge request deserves and who should look at it. It combines affected-module mapping with risk signals (diff size, touched migration or auth files, count of crossed modules) into a single risk tier, then sends a targeted review request to the owning team's Slack channel. Low-risk MRs get a quiet ping; high-risk ones get an explicit callout with the reasons.

When to use it

Use it when review load is unevenly distributed and risky changes slip through with the same treatment as trivial ones. It puts the right MR in front of the right people fast.

How it works

  1. 1A GitLab MR opened webhook fires.
  2. 2The workflow fetches changed files and diff stats from the GitLab API.
  3. 3A shell step maps files to modules and computes risk signals.
  4. 4A logic step assigns a risk tier and resolves the owning team and its Slack channel.
  5. 5It posts a routed review request to Slack with the risk tier and rationale.
  6. 6It also posts a short risk note back on the MR for an audit trail.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  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.