summaryrefslogtreecommitdiff
path: root/doc/api/commits.md
diff options
context:
space:
mode:
authorwendy0402 <wendykurniawan92@gmail.com>2017-02-14 09:28:45 +0700
committerwendy0402 <wendykurniawan92@gmail.com>2017-02-14 09:32:25 +0700
commit79ce7579bb7dad3dba344893fb20c2f1346c84a0 (patch)
tree132ae368420580585df9e25fcbac1824b7393a49 /doc/api/commits.md
parente5f446b7ca4bc54ffaf527e4c57dea2bee2f79f6 (diff)
downloadgitlab-ce-79ce7579bb7dad3dba344893fb20c2f1346c84a0.tar.gz
Make it possible to pass coverage value to commit status API
Diffstat (limited to 'doc/api/commits.md')
-rw-r--r--doc/api/commits.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index 53ce381c8ae..ef2400aaf3c 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -444,6 +444,7 @@ POST /projects/:id/statuses/:sha
| `name` or `context` | string | no | The label to differentiate this status from the status of other systems. Default value is `default`
| `target_url` | string | no | The target URL to associate with this status
| `description` | string | no | The short description of the status
+| `coverage` | float | no | The total code coverage
```bash
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/17/statuses/18f3e63d05582537db6d183d9d557be09e1f90c8?state=success"
@@ -464,6 +465,7 @@ Example response:
"name" : "default",
"sha" : "18f3e63d05582537db6d183d9d557be09e1f90c8",
"status" : "success",
+ "coverage": 100.0,
"description" : null,
"id" : 93,
"target_url" : null,