-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add owner/name prefix to PR number in “Auto merge of …”/“Rollup merge of …” message #145
base: master
Are you sure you want to change the base?
Conversation
It's also worth noting this may break integrations such as:
Otherwise this seems good, but I would like to see PRs landed that fix the above cases before we merge (so we don't break things). |
I guess rollup merge commit messages are relevant, too… |
Rollup merges are looked for by the clippy script I linked previously and (new) the thanks script https://github.com/rust-lang/thanks/blob/master/src/main.rs#L271 |
Looking at something like the incorrect backlinks appearing in rust-lang/rust#7235, the “successful merges” list is relevant, too. |
Okay, wait… this is even worse. Every “auto merge” commit has the full PR message in it. Which means, if we look at any PR that fixes an issues, e.g. rust-lang/rust-clippy#7175, (which contains |
So… maybe the better approach is to somehow find-and-replace all non-prefixed issue numbers in the PR message when creating the commit message for the “auto merge” or the “rollup merge” commit. This would then also remove the problem with the successful merges list and the PR message itself could keep the unprefixed variant of the PR numbers. So I’ll remove 0a66ef7 for now. |
Fixes #144
Disclaimer: I have no idea how to test this code to make sure it’s working properly and doing the right thing.