Job status is overwritable with the commit statuses API

GIVEN a merge request with a failed job in a pipeline

pipeline

WHEN a Developer creates a status on the last merge request commit with the same failed job's name

POST /api/v4/projects/:id/statuses/:sha  {"name": "check", "state": "success"}

THEN pipeline is updated: failed job disappear and a new success external status is created

after_pipeline

The merge request becomes mergeable and pipeline result representation shows a failed but empty badge

after_mr

EXPECTED jobs status shall not be overwritable with the commit statuses API. Only External Status shall be.

GitLab Enterprise Edition 11.10.4-ee

Edited Jun 05, 2019 by Vincent Bisserié
Assignee Loading
Time tracking Loading