Files
pp-qa-km/.gitea/workflows/claude.yml
yellowadmin 45fd1d5874 ci: 新增 Gitea Actions workflow 讓 Claude 回應 issue/PR 事件 (#8)
## 摘要

新增 `.gitea/workflows/claude.yml`,以 `markwylde/claude-code-gitea-action@v1.0.20` 掛在 issue/PR 事件上,讓 Claude 能回應留言與審查。

單一檔案、26 行、無既有檔案異動。

## 內容

- 觸發事件:`issue_comment`(created)、`pull_request_review_comment`(created)、`issues`(opened/assigned/labeled)、`pull_request_review`(submitted)
- runner label:`yellow-zeabur-runner`
- `GITEA_SERVER_URL` 覆寫為 `https://yellow-git.zeabur.app`,避免容器內部連結 `http://gitea:3000` 在外部無法存取

## 前提

合併後要生效,需 repo 已設定 secrets `ANTHROPIC_API_KEY` 與 `USER_TOKEN`,且 runner label `yellow-zeabur-runner` 已註冊。

## 審核注意

- 不含任何 `raw/`、`wiki/` 內容或 manifest 帳本變更(AGENTS.md §1.4/§14 不受影響)。
- 本分支原本還帶著 4 個 commit,但那些內容已由 PR #1#5 squash 合併進 main;分支已重設到 main 之上,只保留這一支 commit。

Co-authored-by: LittleYellow <crazytea@gmail.com>
Reviewed-on: #8
2026-07-25 06:19:16 +00:00

26 lines
793 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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