GraphQL API cannot assigned an issue to copilot using a different branch than default #180319
Replies: 4 comments
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Currently, assigning an issue to Copilot through the GraphQL API typically works only when the operation is performed against the repository’s default branch. If you attempt this from a different branch, the assignment may fail because some automation and Copilot-related workflows are tied to the default branch configuration. To work around this issue, you can: If this limitation affects your workflow, reporting it through GitHub support or discussions can help bring attention to improving multi-branch support in future updates. |
Beta Was this translation helpful? Give feedback.
-
|
Since then there have been some changes - in case someone ends up here in a search for a solution. |
Beta Was this translation helpful? Give feedback.
-
|
found the solution myself :-( |
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
Question
Copilot Feature Area
General
Body
Hi,
We really appreciate the guide provided here to assign an issue to copilot using GraphQL API, however this API is not able to direct copilot using a different branch than default one. Although as explain in this response, one can easily do so from the UI.
I understand we can pre-assign a new branch to an issue, and then eventually re-assign it to copilot but when doing so, the agent is still starting branching out of the default branch. It is not considering the associated branch created earlier.
I also tried to add directions to request the agent to create a branch from stage but it cannot work as, it seems the branch is created 1st and only then the agent starts reading the instruction, so at that point it i snow too late.
Ideally, it would be nice to enhance that GraphQL API to add parameters consistent with what can be done with the UI (e.g. pick a ref branch and/or assign its own agent).
Is there any plan with that respect or am I missing a feature that would allow assigning my issue to copilot so that it start working out of my desired branch when specified - instead of always default? Note that my organization has granted ability to change default branch only to organization owner therefore that any option involving changing the default branch temporarily is not possible for us.
Thank you for your inputs on the matter
Beta Was this translation helpful? Give feedback.
All reactions