Feature Request: Public API to Link a Pull Request to an Issue (Development Sidebar) #186495
Replies: 10 comments 3 replies
|
💬 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. ⭐ |
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. |
|
Thank you for posting this, I really want this functionality in |
|
+1 for this. We also automatize an agent which automatically works on issues and opens pull requests - and we want to be able to link PRs and branches to it after the issue has been created. It works in the UI, so it also should work in the API. |
|
+1 Please |
|
+1 |
|
+1 |
|
+1 to the gods |
|
I support this request. The missing API becomes a real limitation once you start automating development workflows. For teams using GitHub Actions or custom tooling, the "Development" relationship should be metadata that can be managed independently of branch strategy or issue-closing behavior. Today, we can automate labels, assignees, projects, milestones, and comments—but not one of the most useful relationships between an issue and its implementation. An API like this would enable:
Keeping "linking" separate from "closing" would make the feature much more flexible and align it with how many engineering teams actually work. |
|
+1 |
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.
All reactions