Skip to content
Snippets Groups Projects
Commit 01a40700 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Move `status` field back directly to commit data in API

parent 56a45b09
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -73,8 +73,8 @@ curl -H "PRIVATE_TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3
"parent_ids": [
"ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba"
],
"status": "failed",
"last_build": {
"status": "failed",
"coverage": null,
"duration": 2,
"started_at": "2015-12-24T17:54:09.744Z",
Loading
Loading
Loading
Loading
@@ -110,12 +110,12 @@ Parameters:
],
"short_id": "6c14056d",
"title": "Add some fixes",
"status": "running",
"last_build": {
"coverage": null,
"duration": 0,
"finished_at": null,
"started_at": "2012-04-25T13:15:15.000+01:00",
"status": "running"
"started_at": "2012-04-25T13:15:15.000+01:00"
}
}
}
Loading
Loading
Loading
Loading
@@ -132,7 +132,6 @@ module API
end
 
class RepoCommitLastBuild < Grape::Entity
expose :status
expose :started_at
expose :finished_at
expose :duration
Loading
Loading
@@ -141,6 +140,7 @@ module API
 
class RepoCommitDetail < RepoCommit
expose :parent_ids, :committed_date, :authored_date
expose :status
expose :ci_commit, as: :last_build, with: Entities::RepoCommitLastBuild
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment