diff options
author | Rémy Coutable <remy@rymai.me> | 2016-10-22 11:51:01 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-22 11:51:01 +0000 |
commit | fc03440650f811890a75ea87eecbc39b694ce722 (patch) | |
tree | b2da0a3df79c21c7d43677af2f9d260ef915cb64 /doc/api | |
parent | e4937e2800c6405e3f9f50abec4b5b0caf03dae1 (diff) | |
parent | 3a29ea9da0abd6cfd0788f6d717a08862ed6b062 (diff) | |
download | gitlab-ce-fc03440650f811890a75ea87eecbc39b694ce722.tar.gz |
Merge branch '23146_19131_build-api_scope-doc' into 'master'
Fix documents and comments on Build API `scope`
Fixes #23146
Fixes #19131
See merge request !7044
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/builds.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/builds.md b/doc/api/builds.md index e40f198696d..0476cac0eda 100644 --- a/doc/api/builds.md +++ b/doc/api/builds.md @@ -11,10 +11,10 @@ GET /projects/:id/builds | Attribute | Type | Required | Description | |-----------|---------|----------|---------------------| | `id` | integer | yes | The ID of a project | -| `scope` | string **or** array of strings | no | The scope of builds to show, one or array of: `pending`, `running`, `failed`, `success`, `canceled`; showing all builds if none provided | +| `scope` | string **or** array of strings | no | The scope of builds to show, one or array of: `created`, `pending`, `running`, `failed`, `success`, `canceled`, `skipped`; showing all builds if none provided | ``` -curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds" +curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" 'https://gitlab.example.com/api/v3/projects/1/builds?scope%5B0%5D=pending&scope%5B1%5D=running' ``` Example of response @@ -132,10 +132,10 @@ GET /projects/:id/repository/commits/:sha/builds |-----------|---------|----------|---------------------| | `id` | integer | yes | The ID of a project | | `sha` | string | yes | The SHA id of a commit | -| `scope` | string **or** array of strings | no | The scope of builds to show, one or array of: `pending`, `running`, `failed`, `success`, `canceled`; showing all builds if none provided | +| `scope` | string **or** array of strings | no | The scope of builds to show, one or array of: `created`, `pending`, `running`, `failed`, `success`, `canceled`, `skipped`; showing all builds if none provided | ``` -curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/repository/commits/0ff3ae198f8601a285adcf5c0fff204ee6fba5fd/builds" +curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" 'https://gitlab.example.com/api/v3/projects/1/repository/commits/0ff3ae198f8601a285adcf5c0fff204ee6fba5fd/builds?scope%5B0%5D=pending&scope%5B1%5D=running' ``` Example of response |