Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions actions/setup/js/assign_agent_helpers.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ async function assignAgentToIssue(assignableId, agentId, currentAssignees, agent
];
core.debug(`GraphQL mutation with variables: ${debugParts.join(", ")}`);

// Build GraphQL-Features header - include coding_agent_model_selection when model is provided
const graphqlFeatures = model ? "issues_copilot_assignment_api_support,coding_agent_model_selection" : "issues_copilot_assignment_api_support";
// Both feature flags are required per GitHub Copilot documentation
const graphqlFeatures = "issues_copilot_assignment_api_support,coding_agent_model_selection";

const response = await githubClient.graphql(mutation, {
...variables,
Expand Down Expand Up @@ -483,7 +483,7 @@ async function assignAgentToIssue(assignableId, agentId, currentAssignees, agent
assignableId,
assigneeIds: [agentId],
headers: {
"GraphQL-Features": "issues_copilot_assignment_api_support",
"GraphQL-Features": "issues_copilot_assignment_api_support,coding_agent_model_selection",
},
});
if (fallbackResp?.addAssigneesToAssignable) {
Expand Down
6 changes: 3 additions & 3 deletions actions/setup/js/assign_agent_helpers.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ describe("assign_agent_helpers.cjs", () => {
})
);

// Should only include issues_copilot_assignment_api_support when model is not provided
// Should always include both issues_copilot_assignment_api_support and coding_agent_model_selection
const calledArgs = mockGithub.graphql.mock.calls[0];
const variables = calledArgs[1];
expect(variables.headers["GraphQL-Features"]).toBe("issues_copilot_assignment_api_support");
expect(variables.headers["GraphQL-Features"]).toBe("issues_copilot_assignment_api_support,coding_agent_model_selection");
});

it("should preserve existing assignees when adding agent", async () => {
Expand Down Expand Up @@ -330,7 +330,7 @@ describe("assign_agent_helpers.cjs", () => {
expect(mutation).toContain("agentAssignment");
expect(mutation).toContain("model: $model");
expect(variables.model).toBe("claude-opus-4.6");
// Should include coding_agent_model_selection feature flag when model is provided
// Should always include both feature flags
expect(variables.headers["GraphQL-Features"]).toBe("issues_copilot_assignment_api_support,coding_agent_model_selection");
});

Expand Down
Loading