-
-
Notifications
You must be signed in to change notification settings - Fork 60
Add PR links to the issue #501
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
Comments
GitHub does now offer actual links between issues and PRs (see the "Development" section in the right sidebar of this or other issues). However, I have yet to figure out how it's actually supposed to work; the dropdown menu frequently fails to offer me anything approaching relevant, and the magic linking words to include in a message body really are quite magical. If we could that linking working reliably (possibly with help from Sir Bedevere), we could hopefully move away from having to have Bedevere edit any messages. There may be some useful documentation on this somewhere, but I have failed to find it after not looking at all :) |
I created this issue exactly because that feature seems to be kind of useless for our use case. As far as I understand:
In other words, currently linking and closing are coupled. We want the linking but not the closing, so we can't use the feature unless GitHub decouples them. Maybe there's already a way to do it that I'm not aware of? |
Additionally, somewhat orthogonal, but PRs can't close other PRs, which is often useful as far as the closing aspect is concerned. As a sidenote, these cannot be added/changed/removed by triagers unless/until python/core-workflow#460 is resolved.
Yes. |
Ah. I had not previously realized how closely coupled they had "linking" and "closing", and some testing shows that there isn't really any way around it :( On the other hand, links can be made to closed issues, and issues can be reopened; it might not be a bad thing to use the GH linking as is. I for one am not great at always remembering to close an issue after merging its PRs. |
Currently,

bedevere
adds a convenient link to issuegh-NNNNN
to the first message of a PR that includesgh-NNNNN
in the title when the PR is created:However, if you look at the corresponding issue, the link to the PR is lost in the issue timeline among comments, metadata changes, and mentions from other issues and PRs:
Click to see an excerpt of the issue timeline
The only way to find related PRs is to scroll through the whole issue history looking for mentions, and figure out which of these are PRs that solve the issue.
When a PR that includes
gh-NNNNN
in the title is createdbedevere
should:If more PRs that include the same
gh-NNNNN
are created (e.g. backports), the list of PRs in the first message of the issue should be updated accordingly. This will provide an easy way to track all related PRs.About the implementation:
bedevere
bedevere
adds when backport PRs are createdThe text was updated successfully, but these errors were encountered: