Fix CI to not break when run against branches rather than pull requests.