fix(Step9): 優先用 Gitea 狀態阻擋合併 #29

Merged
jiantw83 merged 1 commits from ai-review-resolve/20260622100149 into develop 2026-06-22 10:37:32 +00:00
Member

變更摘要

  • Step9 發現嚴重問題時,優先透過 Gitea API 對 PR head commit 建立 failure status。
  • Gitea status 建立成功時,workflow 以成功結束,由 commit status 負責阻擋 PR 合併。
  • 若 Gitea API 建立 status 失敗,才回到原本 workflow failure 的 exit 1 處理。

影響範圍

  • app/main.js:調整 Step9 嚴重問題檢查流程。
  • app/gitea.js:新增建立 failure commit status 的 helper。
  • app/gitea.test.js:補上 status API helper 的成功與缺少 SHA 測試。
  • README.md:同步更新第 9 階段說明。

驗證

  • npm test 通過,157 pass / 0 fail。

風險與注意事項

  • 阻擋合併仰賴 Gitea 對 commit status / branch protection 的設定;API 失敗時仍會 fallback 到原本 workflow failure。
## 變更摘要 - Step9 發現嚴重問題時,優先透過 Gitea API 對 PR head commit 建立 failure status。 - Gitea status 建立成功時,workflow 以成功結束,由 commit status 負責阻擋 PR 合併。 - 若 Gitea API 建立 status 失敗,才回到原本 workflow failure 的 exit 1 處理。 ## 影響範圍 - `app/main.js`:調整 Step9 嚴重問題檢查流程。 - `app/gitea.js`:新增建立 failure commit status 的 helper。 - `app/gitea.test.js`:補上 status API helper 的成功與缺少 SHA 測試。 - `README.md`:同步更新第 9 階段說明。 ## 驗證 - `npm test` 通過,157 pass / 0 fail。 ## 風險與注意事項 - 阻擋合併仰賴 Gitea 對 commit status / branch protection 的設定;API 失敗時仍會 fallback 到原本 workflow failure。
jiantw83 added 1 commit 2026-06-22 10:34:57 +00:00
fix(Step9): 優先用 Gitea 狀態阻擋合併
AI / 計算版本號 (pull_request) Successful in 2s
AI / Code Review (pull_request) Successful in 1m39s
bd89eb573f
Owner

🤖 AI Code Review 團隊

👤 角色 🎯 面向 🧠 個性
🗡️ Assassin security 多疑偏執、以攻擊者視角看世界,假設每筆輸入都是惡意的,每個信任都會被濫用
🎼 Bard style 唯美龜毛、追求優雅,把可讀性與一致性當作旋律,最受不了走調的命名與排版
🧰 Leo maintainability 有遠見、重視長期維護成本,凡事先問「六個月後的自己還看得懂嗎?」,討厭把債留給未來
🔮 Mage logic 嚴謹冷靜、滴水不漏,凡事推演到最壞情況,深信「沒驗證過的假設都是 bug」
🧪 Maya testing 對測試覆蓋率有執念,深信「沒有測試的程式碼等於沒寫完」,溫和但堅持,最在意邊界與失敗路徑
Rogue efficiency 急性子、講求速度,最痛恨被浪費的 CPU 週期與記憶體,凡事先問「這能不能更快、更省」

🔍 服務:gemini 模型:gemini-2.5-flash

## 🤖 AI Code Review 團隊 | 👤 角色 | 🎯 面向 | 🧠 個性 | |--------|--------|--------| | **🗡️ Assassin** | security | 多疑偏執、以攻擊者視角看世界,假設每筆輸入都是惡意的,每個信任都會被濫用 | | **🎼 Bard** | style | 唯美龜毛、追求優雅,把可讀性與一致性當作旋律,最受不了走調的命名與排版 | | **🧰 Leo** | maintainability | 有遠見、重視長期維護成本,凡事先問「六個月後的自己還看得懂嗎?」,討厭把債留給未來 | | **🔮 Mage** | logic | 嚴謹冷靜、滴水不漏,凡事推演到最壞情況,深信「沒驗證過的假設都是 bug」 | | **🧪 Maya** | testing | 對測試覆蓋率有執念,深信「沒有測試的程式碼等於沒寫完」,溫和但堅持,最在意邊界與失敗路徑 | | **⚡ Rogue** | efficiency | 急性子、講求速度,最痛恨被浪費的 CPU 週期與記憶體,凡事先問「這能不能更快、更省」 | > 🔍 服務:gemini 模型:gemini-2.5-flash
admin reviewed 2026-06-22 10:36:40 +00:00
admin left a comment
Owner

AI Code Review 統計

🔴 嚴重 🟡 警告 🔵 建議
0 筆 0 筆 0 筆
## AI Code Review 統計 | 🔴 嚴重 | 🟡 警告 | 🔵 建議 | | --- | --- | --- | | 0 筆 | 0 筆 | 0 筆 |
jiantw83 merged commit 43f4a23a13 into develop 2026-06-22 10:37:32 +00:00
jiantw83 deleted branch ai-review-resolve/20260622100149 2026-06-22 10:37:33 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: old-actions/code-review#29