Link PR to Issue via API #44915
Unanswered
paulrrogers
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
Some of my projects have an intermediate branch before the default / main branch, yet I'd still like to link the PR to the issue. That way it will auto-close when merging to the main branch used for deployment, and appear related in the GitHub Projects view.
Unfortunately, the only way to link them today appears to be from the PR conversation (a.k.a. edit) page using the "Development" side panel, and only after the PR is created. I've checked the current REST and GraphQL APIs and it's not clear how to link a PR to its issue--or if it's even possible--over an API. If there is no API to do this today then please add one.
As it is I may have to go back to making my intermediate branch the GH default and then use webhooks and APIs to auto-reopen until the work later merges to my main (deployment) branch. 🤦
Beta Was this translation helpful? Give feedback.
All reactions