Commit Graph

8 Commits

Author SHA1 Message Date
GitLab Bot b22f3af733 Add latest changes from gitlab-org/gitlab@master 2022-01-19 15:14:05 +00:00
Shinya Maeda fa73f4ee19 Fix merge requst relationships with pipeline in MWPSService
MWPSService currently uses the old pipeline lookup method. It searches
related merge requests with pipeline.ref, however, this doesn't work
for attached/detached merge request pipelines.
2019-04-05 09:26:56 +07:00
gfyoung fbde835404 Enable more frozen string in app/services/**/*.rb
Partially addresses #47424.
2018-07-17 15:19:40 -07:00
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