write test script for updating a github repo programmatically