chdsbd / kodiak

🔮 A bot to automatically update and merge GitHub PRs
https://kodiakhq.com
GNU Affero General Public License v3.0
1.03k stars 65 forks source link

fix(bot): error parsing response with no commits #831

Closed sbdchd closed 1 year ago

sbdchd commented 1 year ago

When a PR doesn't have any commits, we were failing to parse the response.

I think we could probably improve our mocking situation so its at the actual http response level rather than mocking the method, since the method gets called multiple times with different params.