Add optional allow_failure attribute to Commits API "Post the build status to a commit"

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Description

Posting the build status to a commit via POST /projects/:id/statuses/:sha does not support attribute allow_failure to be changed, it's setting allow_failure=false by default.

In order to have passed entire pipeline a build status sent by API call Post the build status to a commit must be success. However if a build is running from .gitlab-ci.yml the allow_failure can be configured what would mark pipeline passed with warnings.

Proposal

Add an optional attribute allow_failure to https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit This would allow us to provide build status information which would not effect pipeline status but would be additional information, as example, for code review process.

Links / references

https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading