Commit Graph

5 Commits

Author SHA1 Message Date
Sean McGivern 6247886405 Don't create build failed todo when build is retried
When a build is retried automatically, we close any open todos. However, we do
that _before_ creating a new build failed todo.

To solve this, we check if the build is retried before creating the todo. We
also ensure that the build _instance_ has the correct attribute set, without
needing to reload it from the database.
2017-10-16 11:10:07 +01:00
Grzegorz Bizon 25b3b2e5bc Make it possible to resolve all todos for pipeline 2017-02-15 10:54:33 +01:00
Grzegorz Bizon f0d5ef963f Do not create TODO when build is allowed to fail 2016-11-21 13:30:24 +01:00
Grzegorz Bizon 217244074f Move MWBS trigger from build to pipeline event 2016-10-06 10:46:31 +02:00
Sean McGivern 6b834f2cbc Create a todo on failing MR build
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.
2016-05-17 10:17:45 +01:00