Skip to content

Use Claude Opus 4.6 for weekly stable updates agent#1389

Merged
jonathanpeppers merged 2 commits into
dotnet:mainfrom
jonathanpeppers:dev/peppers/use-opus-4.6
Apr 3, 2026
Merged

Use Claude Opus 4.6 for weekly stable updates agent#1389
jonathanpeppers merged 2 commits into
dotnet:mainfrom
jonathanpeppers:dev/peppers/use-opus-4.6

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

@jonathanpeppers jonathanpeppers commented Mar 30, 2026

Switch from gh issue edit --add-assignee to the REST API with agent_assignment to specify Claude Opus 4.6 as the model. The simple gh CLI assignee approach does not support model selection, causing the agent to default to Auto (which picks Sonnet).

See: https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr#using-the-rest-api

Switch from 'gh issue edit --add-assignee @copilot' to the REST API
with agent_assignment to specify Claude Opus 4.6 as the model. The
simple gh CLI assignee approach doesn't support model selection,
causing the agent to default to Auto (which picks Sonnet).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 30, 2026 21:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the scheduled “Weekly Stable Updates” GitHub Actions workflow to assign the created tracking issue to the Copilot SWE agent while explicitly selecting the Claude Opus 4.6 model via the REST API (instead of relying on gh issue edit, which can’t specify a model).

Changes:

  • Replaced gh issue edit --add-assignee with a gh api POST to the issue assignees endpoint.
  • Added an agent_assignment payload specifying model: claude-opus-4.6 when assigning the Copilot agent bot.

Comment thread .github/workflows/weekly-stable-updates.yml Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers jonathanpeppers merged commit ceac065 into dotnet:main Apr 3, 2026
2 checks passed
jonathanpeppers added a commit to dotnet/android that referenced this pull request May 14, 2026
The default GITHUB_TOKEN lacks permission to assign the Copilot
coding agent via GraphQL. Use ANDROID_TEAM_PAT which has the
required scopes (same pattern as dotnet/android-libraries#1389).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants