Hi there,
I’ve been looking through the documentaiton and this forum but I can’t find a concrete answer to this. I know that, when a pull request is merged using “squash and merge”, github uses the author of the pull request as the author of the resulting commit (and it uses noreply.github.com if the author’s account is configured to keep e-mail private).
However: what is not quite clear to me is how it determines which e-mail address to use if not private (assuming the account has more than one e-mail address). Does it always use the primary e-mail address configured on the author’s account? Or does it look at e-mail notiifcation configuration for a particular repo? Or does it do something else? I have tried to do a few test merges on a private repo but have a hard time figuring out the exact logic.
Somewhat related: am I correct in assuming it sets both author id and committer id to the PR author?