Compare commits

..

3 Commits

Author SHA1 Message Date
LittleYellow
50f03d8939 ci: checkout 改為完整歷史(fetch-depth: 0)
預設淺層 clone 只有一個 commit,Claude 需要完整歷史才能比對分支與產生 diff。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 17:49:16 +08:00
LittleYellow
61d35dd851 ci: workflow 指定 claude 執行檔路徑
加 path_to_claude_code_executable 指向 /usr/local/bin/claude,
避免 runner 環境 PATH 找不到執行檔;順帶移除 GITEA_SERVER_URL 上方註解。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 17:37:42 +08:00
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

View File

@@ -14,13 +14,14 @@ jobs:
runs-on: yellow-zeabur-runner runs-on: yellow-zeabur-runner
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: markwylde/claude-code-gitea-action@v1.0.20 - uses: markwylde/claude-code-gitea-action@v1.0.20
with: with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
gitea_token: ${{ secrets.USER_TOKEN }} gitea_token: ${{ secrets.USER_TOKEN }}
claude_git_name: Claude claude_git_name: Claude
claude_git_email: claude@anthropic.com claude_git_email: claude@anthropic.com
path_to_claude_code_executable: /usr/local/bin/claude
env: env:
# 如果 Gitea 跑在容器裡,內部連結會變成 http://gitea:3000
# 用這個覆寫成外部可存取的網址
GITEA_SERVER_URL: https://yellow-git.zeabur.app GITEA_SERVER_URL: https://yellow-git.zeabur.app