That's a useful point—however, in this situation I don't prefer that approach. It is less descriptive.

I would be in favor of a method on the repository model. For instance `@repository.build_for_commit(sha)`. I'm going to see how that looks.