Skip to content

Commit ceac065

Browse files
Use Claude Opus 4.6 for weekly stable updates agent (#1389)
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>
1 parent 862e3ce commit ceac065

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/weekly-stable-updates.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,19 @@ jobs:
7474
console.log(`Created issue #${response.data.number}: ${response.data.title}`);
7575
core.setOutput('issue-number', response.data.number);
7676
77-
- name: Add assignee to issue
77+
- name: Assign issue to Copilot with Claude Opus 4.6
7878
if: steps.create-issue.outputs.issue-number && steps.create-issue.outputs.issue-number != ''
79-
run: gh issue edit ${{ steps.create-issue.outputs.issue-number }} --add-assignee "@copilot" -R dotnet/android-libraries
79+
run: |
80+
gh api \
81+
--method POST \
82+
-H "Accept: application/vnd.github+json" \
83+
-H "X-GitHub-Api-Version: 2022-11-28" \
84+
/repos/${{ github.repository }}/issues/${{ steps.create-issue.outputs.issue-number }}/assignees \
85+
--input - <<< '{
86+
"assignees": ["copilot-swe-agent[bot]"],
87+
"agent_assignment": {
88+
"model": "claude-opus-4.6"
89+
}
90+
}'
8091
env:
8192
GH_TOKEN: ${{ secrets.ANDROID_TEAM_PAT }}

0 commit comments

Comments
 (0)