How do I check in CircleCI if a project branch is currently green (has no failures)?
I have looked at https://circleci.com/docs/api under Recent Builds For a Single Project and the "status" field, but when I try, say,
curl 'https://circleci.com/api/v1/project/rocky/libcdio-paranoia?&limit=20&offset=5&filter=completed'
I get a list and the status shows "failure". There was probably a failure somewhere along the way, but I am only interested in the latest build.