Skip to content

Create a todo on failing MR build

Implements #14067 (closed). I worked on this with @DouweM (any mistakes are mine).

When a build fails for a commit, create a todo for the author of the merge request that commit is the HEAD of. If the commit isn't the HEAD commit of any MR, don't do anything. If there already is a todo for that user and MR, don't do anything.

Current limitations:

  • This isn't configurable by project.
  • The author of a merge request might not be the person who pushed the breaking commit.
  • I haven't tested this with a working CI setup, just with the unit tests below and by modifying my DB directly.

Merge request reports