[gh] `pull-request` resolves base branch and HEAD to upstream

This is to fix https://github.com/github/hub/issues/636.

I only manually tested this since setting up a fixture repo seems tricky:
we'd need a repo that has different upstream commits than local's and assert that the logs are generated for upstream.

/cc @mislav