Make it easy to apply diffs from CI.

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to solve

It is great that CI can catch your errors, it would be even better if your CI could fix them. There should be a way for CI to generate a patch which can be applied with a single button press.

Target audience

Developers. Some possible use cases include.

  • Auto-formatting code.
  • Automated improvements such as those provided by clang-tidy.
  • Other fixes such as updating copyright years or adding copyright notices.

Further details

Basic Features

  • Identify patches produced from CI (possibly as an artifact).
  • One-click application of a patch to a MR branch.
Possible Advanced Features
  • Apply patch file-by-file or hunk-by-hunk.
  • Some way to see these improvements from the code browser. This way improvements to code can be suggested retroactively.
  • Show generated diffs similarly to comments on a MR.

Proposal

  • Add a way to mark an artifact as a "suggested fix".
  • Add a button to the MR page to apply generated fixes.

What does success look like, and how can we measure that?

Users can set up CI to generate fixes and apply them with a single click.

Edited Sep 04, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading