-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add base_ref parameter and GraphQL-Features header support to assign_copilot_to_issue tool #1779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add optional base_ref parameter to tool schema - Change from replaceActorsForAssignable to updateIssue mutation with agentAssignment - Add AgentAssignmentInput and UpdateIssueInput structs for new GraphQL mutation - Update all tests to use new mutation structure - Add test case for base_ref functionality - Update toolsnaps and documentation Co-authored-by: SamMorrowDrums <[email protected]>
|
@copilot add in GraphQL-Features: issues_copilot_assignment_api_support feature to this tool please, so the API actually works, it's not GA yet so requires the feature to be provided. Related discussion is here: https://github.com/orgs/community/discussions/173575 This should use the standard github GraphQL feature support. |
- Add context-based GraphQL feature flag support - Modify bearerAuthTransport to read features from context and add GraphQL-Features header - Use issues_copilot_assignment_api_support feature flag for updateIssue mutation - Export GetGraphQLFeatures function for use in HTTP transport layer This allows the assign_copilot_to_issue tool to work with the non-GA agent assignment API by sending the required GraphQL-Features header. Co-authored-by: SamMorrowDrums <[email protected]>
Added GraphQL-Features header support in commit ced0c4c. The tool now sends the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Summary
Adds optional
base_refparameter toassign_copilot_to_issuetool, migrates fromreplaceActorsForAssignabletoupdateIssueGraphQL mutation withagentAssignmentfield, and implements GraphQL-Features header support for the non-GA agent assignment API.Why
Enables specifying which branch Copilot should start from when working on an issue. Previously, only the default branch could be used. The agent assignment API is not yet GA and requires the
GraphQL-Featuresheader to function.Related: community/community#173575 (comment)
What changed
base_refparameter to tool schema (defaults to repository default branch if omitted)replaceActorsForAssignablemutation withupdateIssuemutation usingagentAssignmentfieldAgentAssignmentInputandUpdateIssueInputstructs for new GraphQL mutation structurebase_refparameterbearerAuthTransportto read GraphQL features from context and addGraphQL-FeaturesheaderGraphQL-Features: issues_copilot_assignment_api_supportheader for agent assignment APIMCP impact
Tool now accepts optional
base_refparameter. GraphQL mutation changed fromreplaceActorsForAssignabletoupdateIssuewithagentAssignmentfield containingbaseRef,customAgent,customInstructions, andtargetRepositoryId. Requests now include theGraphQL-Features: issues_copilot_assignment_api_supportheader required by the non-GA API.Prompts tested (tool changes only)
Security / limits
Tool renaming
Lint & tests
./script/lint./script/testDocs
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.