ENGINEERING

Enrich a thin GitLab MR description with an AI summary

When an MR has a short or empty description, it generates a structured summary from the diff and commit messages, then writes it into the MR description with an edit-safe marker.

CategoryEngineering
Enginesim
Difficultybeginner
Triggerwebhook
Steps5
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab MR opened or updated webhookGitLabGitLab
  • LogicSkip if description is already adequate
  • ActionFetch diff and commit messagesGitLabGitLab
  • ActionGenerate structured summaryOpenAI
  • OutputWrite summary into MR descriptionGitLabGitLab

What it does

This workflow fills in the blanks on lazily described merge requests. It detects MRs whose description is empty or below a length threshold, feeds the diff and commit messages to an LLM, and writes back a structured summary covering what changed, why, and what reviewers should look at. The generated section is wrapped in a marker so the author's own text is never overwritten.

When to use it

Use it on teams where MR descriptions are routinely one-liners, slowing review and polluting the changelog. It raises the floor on description quality without forcing authors to fill a template by hand.

How it works

  1. 1A GitLab MR opened/updated webhook fires.
  2. 2A logic step checks whether the description is missing or shorter than the threshold; if it is adequate, the run stops.
  3. 3The workflow fetches the diff and commit messages for the MR.
  4. 4An OpenAI step generates a structured summary (changes, rationale, review focus).
  5. 5It updates the MR description, inserting the summary inside a managed marker block while preserving any existing author text.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    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.