Repository navigation
ci(triage): triage issues with Claude and repository tools - #867
Conversation
Replace the DeepSeek triage with Claude Opus 5.5 through the Anthropic SDK. The model reads the code through read-only tools (git grep, tracked files, issue bodies), so comments point at real files and check duplicates against open and recently closed issues. A good first issue gets start steps, the commands to run and pointers that moved. The workflow authenticates with workload identity federation, so no API key is stored.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
The triage bot moves from DeepSeek to Claude Opus 5.5 (
claude-opus-5-5) through the official@anthropic-ai/sdk(pinned to 0.131.0 in.github/scripts/package.json).search_code(git grep),read_file(files git tracks only, so.gitand the environment stay out of reach) andview_issue.AGENTS.md,CONTRIBUTING.md, the source file list, the top of the CHANGELOG, and the open and recently closed issues with the start of each body.good first issuegets three extra sections for new contributors: numbered start steps, the commands to run before the PR, and the file and line pointers of the issue that moved since it was written.id-token: write, and the script gets a new GitHub OIDC token for each exchange. The rule only acceptstriage.ymlonmain. The ids come from three repository variables; no API key is stored.Testing
node --check .github/scripts/triage.mjsnpm ci --ignore-scriptsin.github/scripts: 0 vulnerabilitieseffort: "high", the JSON schema and the three tools; about 21k input tokens on the first call (28k for a good first issue).--renderwith sampletriage.jsonfiles, for a normal issue and a good first issue.https://api.anthropic.comaudience and the SDK sent it to the real exchange endpoint, which refused the fake rule id as expected.No real model run yet: the federation rule only matches
triage.ymlonmain. After the merge I rungh workflow run triage.yml -f issue_number=863to check it end to end.Additional notes
DEEPSEEK_API_KEYcan be deleted after the merge.💬 Questions or want to chat with other contributors? Join the spotatui Discord.
Summary by CodeRabbit