This should do the same ;)
```ruby
pull_requests(repo).find { |pr| pr.sha == sha }
```