In addition to seeing the download status at the /admin/pre-receive-environments/:pre_receive_environment_id, there is also a separate endpoint for just the status.
GET /admin/pre-receive-environments/:pre_receive_environment_id/downloads/latest
Status: 200 OK
{
"url": "https://github.example.com/api/v3/admin/pre-receive-environments/3/downloads/latest",
"state": "success",
"downloaded_at": "2016-05-26T07:42:53-05:00",
"message": null
}
| Name | Type | Description |
|---|---|---|
state |
string |
The state of the most recent download. |
downloaded_at |
string |
The time when the most recent download started. |
message |
string |
On failure, this will have any error messages produced. |
Possible values for state are not_started, in_progress, success, failed.