parent
6ff3625f63
commit
3a29ea9da0
3 changed files with 7 additions and 6 deletions
|
@ -9,6 +9,7 @@ Please view this file on the master branch, on stable branches it's out of date.
|
|||
- Fix: Backup restore doesn't clear cache
|
||||
|
||||
- Use MergeRequestsClosingIssues cache data on Issue#closed_by_merge_requests method
|
||||
- Fix documents and comments on Build API `scope`
|
||||
|
||||
## 8.13.0 (2016-10-22)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,7 +8,7 @@ module API
|
|||
#
|
||||
# Parameters:
|
||||
# id (required) - The ID of a project
|
||||
# scope (optional) - The scope of builds to show (one or array of: pending, running, failed, success, canceled;
|
||||
# scope (optional) - The scope of builds to show (one or array of: created, pending, running, failed, success, canceled, skipped;
|
||||
# if none provided showing all builds)
|
||||
# Example Request:
|
||||
# GET /projects/:id/builds
|
||||
|
@ -25,7 +25,7 @@ module API
|
|||
# Parameters:
|
||||
# id (required) - The ID of a project
|
||||
# sha (required) - The SHA id of a commit
|
||||
# scope (optional) - The scope of builds to show (one or array of: pending, running, failed, success, canceled;
|
||||
# scope (optional) - The scope of builds to show (one or array of: created, pending, running, failed, success, canceled, skipped;
|
||||
# if none provided showing all builds)
|
||||
# Example Request:
|
||||
# GET /projects/:id/repository/commits/:sha/builds
|
||||
|
|
Loading…
Reference in a new issue