Add pull request number to Build model

* Extract stub helpers in pull_request_spec