Files
pp-qa-km/.gitea/workflows/claude.yml
LittleYellow 238e57e4db ci: workflow 加 --append-system-prompt 要求繁體中文回覆
以 claude_args 附加 system prompt,讓 issue/PR 留言、commit message
說明與 todo 項目一律用繁體中文;程式碼註解與命名維持英文慣例。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 23:39:12 +08:00

29 lines
985 B
YAML

name: Claude Assistant
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned, labeled]
pull_request_review:
types: [submitted]
jobs:
claude-response:
runs-on: yellow-zeabur-runner
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: markwylde/claude-code-gitea-action@v1.0.20
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
gitea_token: ${{ secrets.USER_TOKEN }}
claude_git_name: Claude
claude_git_email: claude@anthropic.com
path_to_claude_code_executable: /usr/local/bin/claude
claude_args: |
--append-system-prompt "請一律使用繁體中文回覆,包含 issue/PR 留言、commit message 說明文字、todo list 項目。程式碼註解與變數命名維持英文慣例即可。"
env:
GITEA_SERVER_URL: https://yellow-git.zeabur.app