codeforamerica / cfapi

The Code for America API. Tracks and motivates activity and participation across the civic technology movement.
http://codeforamerica.org/api
MIT License
113 stars 52 forks source link

Get the last commit status for each project from GitHub #298

Closed ondrae closed 8 years ago

ondrae commented 8 years ago

Description

Continuing the discussion from https://github.com/codeforamerica/brigade/pull/435#issuecomment-171398472. In order to improve the Project Monitor, we should start including the projects testing status in the CfAPI.

We're already making four GitHub requests during the hourly update, lets include another. We may need to do another request first to find out what the default branch is.

We'll also need to add a new attribute on to Project of test_status or last_commit_status or something like that.

Files

models.py, app.py, run_update.py, tests/

Tasks