Story #6126
Updated by pulpbot over 2 years ago
**Ticket moved to GitHub**: "pulp/pulpcore/1865":https://github.com/pulp/pulpcore/issues/1865 ---- For improving our response to broken builds, it would be useful to have an easy way to check the state of all builds. As PoC: ~~~ text for REPO in $(http https://api.github.com/orgs/pulp/repos | jq '.[].full_name' | sed 's/"//g') do repo=$(echo $REPO | sed 's/\//%2F/g') state=$(http https://api.travis-ci.com/repo/${repo}/builds\?event_type\=cron\&limit\=1 Travis-API-Version:3 'Authorization:token <<PULP_TRAVIS_TOKEN>>' | jq '.builds[].state') echo "${REPO} state = ${state}" done ~~~ **Reference:** * github api: >> * list org repos: https://developer.github.com/v3/repos/#list-organization-repositories >> * list workflow run: https://developer.github.com/v3/actions/workflow_runs/#list-repository-workflow-runs > > * https://api.github.com/repos/fabricio-aguiar/pulp_file/actions/runs * travis builds api: https://developer.travis-ci.com/resource/builds#Builds