ci: 新增 Gitea Actions workflow 讓 Claude 回應 issue/PR 事件 #8
26
.gitea/workflows/claude.yml
Normal file
26
.gitea/workflows/claude.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
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
|
||||||
|
- 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
|
||||||
|
env:
|
||||||
|
# 如果 Gitea 跑在容器裡,內部連結會變成 http://gitea:3000,
|
||||||
|
# 用這個覆寫成外部可存取的網址
|
||||||
|
GITEA_SERVER_URL: https://yellow-git.zeabur.app
|
||||||
Reference in New Issue
Block a user