-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit queue overwrites commit author #52967
Comments
I haven't looked at the code for the bot, but theoretically could we just replace the PR author setup with the first commit author? I'm happy to take a look at it, but I'm not a CODEOWNER, just a triage member @nodejs/github-bot |
I think that's a limitation of the GitHub API – the alternatives/workaround are:
I've been trying to do the latter when I notice the commit author is not the same person that sent the PR. I guess we could implement a check to refuse to land a PR when the author will be wrong. |
That seems (IMO) a good solution, but I'm far from the person who would be affected by any of this |
This changed recently, before when you added the "commit-queue-squash" it would squash on the first commit and keep the author of the first commit as the author of the landed commit. |
I made a little experiment using the GH UI: targos#18, targos@adf6657 |
I think you're misremembering, AFAIK it's always been the case that GH uses the "PR opener" as commit author – and we're using the GH API since #40666. |
I remember #45597 maybe it was landed with |
See #52745 and #52860 (@marco-ippolito)
When the commit author and the PR author do not match, the original commit author is lost when the PR is merged.
The text was updated successfully, but these errors were encountered: