Feature Request: Public API to Link a Pull Request to an Issue (Development Sidebar) #186495
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
This is only hinted at in a comment of #112224 but manual linking actually has the exact same issue as closing keywords, it only works if the PR targets a default branch, as you can see in this example:
Even though xmo-odoo/testrepo#4 says that the PR will close it, and xmo-odoo/testrepo#5 says that it "may" close the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Feature Request: Public API to Link a Pull Request to an Issue (Development Sidebar)
What's missing?
There is currently no public API (REST or GraphQL) to programmatically create the "Development" sidebar link between a pull request and an issue — the same link that can be created manually via the UI.
Why is this a problem?
The existing workarounds all break down in real-world workflows:
What's needed?
A public API that lets you directly link any PR to any issue, just like the UI does:
Example GraphQL:
Example REST:
Who needs this?
Prior discussions (fragmented)
This has been requested for years across many threads, but the pain is scattered:
They're all asking for the same thing: decouple the "Development" link from branch targeting and closing semantics, and expose it via API.
Beta Was this translation helpful? Give feedback.
All reactions