Add the Warning status to the commit API
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=32586)
</details>
<!--IssueSummary end-->
This is in regards to this API feature: https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit
The warning status, as described here: https://docs.gitlab.com/ee/ci/pipelines.html, is not available to the commit status API but it is an important and useful status as 'warning' is a valid build state to communicate back to the commit. For example, for our Nexus IQ integration with GitLab we communicate policy evaluation results for security vulnerabilities and licensing back to the GitLab commit and the only applicable/meaningful choices we currently have are 'success' and 'failed'. But, 'warning' is a very valid status to be able to communicate (as would also be shown on the pipeline mini-graph).
We would like to see the 'warning' status added to the commit status API please. This includes visualization of the warning state on the commit status.
<!-- Don't edit below this line -->
issue