• Douwe Maan's avatar
    Merge branch 'create-todo-on-failing-build' into 'master' · 3f6f2bbe
    Douwe Maan authored
    Create a todo on failing MR build
    
    Implements #14067. 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.
    
    
    See merge request !3177
    3f6f2bbe
commit_status.rb 2.42 KB