PolicyStat/hubot — pull request #6 by winhamwr (2013-10-29 18:10:48+00:00)
Title: When updating the branch status, update the appropriate commit instead of always updating the head

Currently whenever the branch status is updated to indicate whether tests are passing or failing, we always mark the head commit. This is bad, because it can result in code being merged in and deployed that hasn't been tested.

When hubot receives instructions to run the tests, save the commit. As test results are received, retrieve the saved commit and update it.