Fix some errors from octokit integration.

It seems there were a few places where the return statements were forgotten.
Not sure if this was intentional or just missed? Some of the tests were
throwing errors while I was trying to squash problems.