Would this be better?

```ruby
state = octokit.statuses(repo, sha).shift
```