Easy build status access via API
For our dashboard I'd like to query and map the build status of different projects from the API, simply if the last pipeline was successful (like the build badge, but as text).
It turns out that this is not so simple with the current API.
/pipelines
returns unsorted json, which you cannot use to get the last pipeline id, /builds
doesn't work because with multiple jobs it's hard to find out if the hold pipeline was successful.
It would be great to have a /pipelines?last
that would only return the latest.
Or include the last build status in /projects/:id
Maybe there is an easy way but I just haven't found it ?
Thanks !