[Feature Request] GraphQL API to retroactively link merged PRs to closed issues in Projects V2 #184673
Replies: 1 comment
-
|
💬 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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Currently, the
LINKED_PULL_REQUESTSfield in Projects V2 is automatically populated only when:gh issue developorcreateLinkedBranchmutationOnce a PR is merged and an issue is closed, there is no way to retroactively create this development link metadata. This creates problems for:
Current Workarounds and Limitations
I've investigated all available options:
❌
updateProjectV2ItemFieldValuemutationResult:
InputObject 'ProjectV2FieldValue' doesn't accept argument 'linkedPullRequestIds'❌
createLinkedBranchmutationoidparameter❌ Timeline/Connected Events API
CONNECTED_EVENTorCLOSED_EVENTretroactivelyAdding comments like "Closed by #XX" creates visual cross-references but does not populate the Projects V2 metadata field.
Proposed Solution
Add a new GraphQL mutation or extend existing ones to support retroactive development linking:
Option 1: New Mutation
Option 2: Extend Existing Mutation
Use Cases
Expected Behavior
After linking:
linkedPullRequestsshould include retroactively linked PRsAdditional Context
I discovered this limitation while trying to properly organize a project's migration roadmap where multiple PRs (#66, #67, #68) closed multiple issues (#53-#59, #62-#63). All PRs included "Closes #XX" in their descriptions, but because they were merged before I realized the keywords needed to be present earlier, the Projects V2 metadata was never populated.
References
LINKED_PULL_REQUESTS(read-only)createLinkedBranch(only for branches)Would love to see this capability added to the GraphQL API to support better project organization and historical accuracy!
Beta Was this translation helpful? Give feedback.
All reactions