Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

The assign_to_agent safe output was failing because the GraphQL mutation always declared $copilotAssignmentOptions: CopilotAssignmentOptionsInput even when no options were provided. This type isn't yet available in all API contexts, breaking existing workflows.

Changes

  • Conditional mutation selection: Use simple mutation (no copilotAssignmentOptions) for basic assignment, extended mutation only when new options are actually provided
  • Updated tests: Added test for simple mutation path, existing tests now verify headers only appear with Copilot options

Behavior

# Basic usage - uses simple mutation (backward compatible)
- assign_to_agent:
    issue_number: 123

# With options - uses extended mutation with GraphQL-Features header
- assign_to_agent:
    issue_number: 123
    base_branch: "develop"
    custom_instructions: "Follow coding standards"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…opilot options provided

Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 4, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login ut.js GO111MODULE .cfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linu--auto env 1737-12059/test-258474244 GO111MODULE 1737-12059/test-258474244/.gitattributes GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linu--jq (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login -json GO111MODULE ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linu/var/run/docker/runtime-runc/moby (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login -json GO111MODULE 88c7bd9b816830ab12b4a34cba560fd58fc/log.json GOINSECURE GOMOD GOMODCACHE go env ns/setup.git GO111MODULE (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add support for new GitHub Copilot assignment API options fix: Use simple GraphQL mutation for backward compatibility when no Copilot options provided Dec 4, 2025
Copilot AI requested a review from mrjf December 4, 2025 21:30
@pelikhan pelikhan marked this pull request as ready for review December 5, 2025 05:19
@pelikhan pelikhan merged commit 23591a5 into update-assign-to-agent-api Dec 5, 2025
@pelikhan pelikhan deleted the copilot/sub-pr-5561 branch December 5, 2025 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants