Skip to content

feat(orchestration): 统一 .env + 多 LLM provider + askUserChoice 通道(D-9.1b · ADR-0018) #42

feat(orchestration): 统一 .env + 多 LLM provider + askUserChoice 通道(D-9.1b · ADR-0018)

feat(orchestration): 统一 .env + 多 LLM provider + askUserChoice 通道(D-9.1b · ADR-0018) #42

Workflow file for this run

name: Claude
# Interactive entry point: @claude mentions in PR / issue / review comments trigger a conversation.
# Auto-review lives in claude-review.yml (runs once on PR open).
# Auth: Max/Pro subscription OAuth via CLAUDE_CODE_OAUTH_TOKEN (generate locally with `claude setup-token`).
#
# 互动入口:在 PR / issue / review comment 里 @claude 触发对话
# 自动 review 见 claude-review.yml(PR 打开时无脑跑一次)
# 鉴权:走 Max/Pro 订阅 OAuth(CLAUDE_CODE_OAUTH_TOKEN),本地 `claude setup-token` 生成
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
issues:
types: [opened, assigned]
jobs:
claude:
name: Claude · triggered by @mention / @mention 触发
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
- uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}