[GHF] Improve authorship detection (#77266)
When PR creator is not among any of the commit authors, assume that
change were authored by author of the first commit
Add test that validates that using #75095
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77266
Approved by: https://github.com/seemethere