Skip to content
代码片段 群组 项目
未验证 提交 6a4c87d6 编辑于 作者: Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason 提交者: GitLab
浏览文件

Fix commit status API incorrectly overwriting MR head pipeline

The commit status API would sometimes incorrectly overwrite the merge
request head pipeline with a branch pipeline when a merge request
pipeline also existed for the same commit.

This was due to a duplicate and incorrect implementation of the required
logic. The solution is to instead fire a `Ci::PipelineCreatedEvent` _if_
an `external` pipeline is created, as this is the canonical way to
trigger the `head_pipeline_id` update. There is no need to update the
`head_pipeline_id` for pre-existing pipelines, as these would already
have fired the required events.

See https://gitlab.com/gitlab-org/gitlab/-/issues/450176

Changelog: fixed
上级 897f7dea
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册