ai-review-resolve/master-20260717-165242
master
將 node action 範本改寫為 AI Code Review action:以攻擊方六角色(🔮 Mage 邏輯、🗡️ Assassin 安全、⚡ Rogue 效率、🎼 Bard 風格、🧪 Maya 測試、🧰 Leo 可維護性)並行審查 PR diff、防守方(🛡️ Paladin)批次裁決誤報,結果留言到 PR、保存 findings,並以 bot commit([success]/[failure])閉環回報審查狀態。
[success]
[failure]
flowchart LR A[1 bot commit 快速回報] --> B[2 偵測 AI 工具] B --> C[3 .reviewignore + diff 摘要] C --> D[4-5 攻擊方並行找問題] D --> E[6-7 防守方裁決 → 保存 findings] E --> F[8 舊留言標記解決] F --> G[9-10 嚴重掛行留言/其他表格彙整] G --> H[收尾 commit/push + exit code]
action.yml
token
model
create-issue
'false'
node24
src/index.js
src/lib/
src/prompts/roles/
.reviewignore
readme.md
ci.yaml
.gitea/ai-review/exclusions.json
create-issue: 'true'
exclusions.json
runs.using: node24
node20
fetch-depth: 0
secrets.GITHUB_TOKEN
gitea.sha
ACTION_CLEAN_OLD_RELEASE
feat(ai-code-review)
docs(readme 與 ci.yaml)
chore(package.json)
🤖 Generated with Claude Code
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
No dependencies set.
The note is not visible to the blocked user.
變更摘要
將 node action 範本改寫為 AI Code Review action:以攻擊方六角色(🔮 Mage 邏輯、🗡️ Assassin 安全、⚡ Rogue 效率、🎼 Bard 風格、🧪 Maya 測試、🧰 Leo 可維護性)並行審查 PR diff、防守方(🛡️ Paladin)批次裁決誤報,結果留言到 PR、保存 findings,並以 bot commit(
[success]/[failure])閉環回報審查狀態。審查流程(10 步驟)
影響範圍與重點檔案
action.ymltoken(必填)、model、create-issue(預設'false');node24零相依直跑src/index.jssrc/index.jssrc/lib/(8 檔)src/prompts/roles/(7 檔).reviewignorereadme.md、ci.yaml主要功能
.gitea/ai-review/exclusions.json(含裁決理由),與 findings 一併 commit 回 PR 分支create-issue: 'true'):建 issue(標題=PR 標題、描述=PR 描述、AI 挑標籤)、問題依「檔案→嚴重度→行號」逐條留言到 issue,收尾只 commitexclusions.json風險與注意事項
runs.using: node24需較新的 act runner(過舊需升級或退node20)fetch-depth: 0並以secrets.GITHUB_TOKEN傳入tokenci.yaml註解標 4 處「需人工確認」:PR 即發布 Release 的行為、release token 權限、gitea.sha指向、ACTION_CLEAN_OLD_RELEASE變數命名Commit 清單
feat(ai-code-review): 新增 AI 多角色 code review action(攻防審查、findings 保存、建問題模式)docs(readme 與 ci.yaml): 重建 README 功能文件並為 ci.yaml 補標頭與逐行註解chore(package.json): 更新套件名稱與描述為 ai-code-review🤖 Generated with Claude Code
Pull request closed