22 Commits

Author SHA1 Message Date
jiantw83 e5d8088023 Merge pull request 'develop' (#21) from develop into master
Reviewed-on: #21
2026-05-18 05:05:51 +00:00
jiantw83 ee864dea13 Merge pull request 'fix: install ca certificates' (#20) from feat/ai_code_review into develop
Reviewed-on: #20
2026-05-18 05:03:47 +00:00
AI Review Bot 15be1fea8a chore: update ai-review findings [ai-review-bot][success] 2026-05-18 05:03:32 +00:00
jiantw83 676bb74235 fix: install ca certificates 2026-05-18 05:01:38 +00:00
jiantw83 955ad71c87 Merge pull request 'chore: update review workflow tokens' (#19) from develop into master
Reviewed-on: #19
2026-05-16 15:22:58 +00:00
jiantw83 e7bd331866 Merge pull request 'feat: update master.yaml job names and add review.yaml for AI code review' (#17) from develop into master
Reviewed-on: #17
2026-05-13 03:27:13 +00:00
jiantw83 2612054d59 Merge pull request 'feat: 一直檢查到成功為止,除非使用者手動停止工作' (#16) from develop into master
Reviewed-on: #16
2026-03-31 07:25:33 +00:00
jiantw83 0012896045 Merge pull request 'feat: 透過 trap 在收到訊號時立即退出' (#15) from develop into master
Reviewed-on: #15
2026-03-27 06:57:24 +00:00
jiantw83 541f074146 Merge pull request 'feat: 將 exit 移到最後一步' (#14) from develop into master
Reviewed-on: #14
2026-03-26 07:35:36 +00:00
jiantw83 9d61645c84 Merge pull request 'feat: 將參數輸出移到最後一個步驟' (#13) from develop into master
Reviewed-on: #13
2026-03-26 06:52:06 +00:00
jiantw83 d5ece1f4ef Merge pull request 'fix: 修正私人證書路徑' (#12) from develop into master
Reviewed-on: #12
2026-03-26 01:42:22 +00:00
jiantw83 4aaccfc635 Merge pull request 'feat: 安裝私人證書' (#11) from develop into master
Reviewed-on: #11
2026-03-26 01:40:16 +00:00
jiantw83 a78750013a Merge pull request 'feat: 連線失敗,等待 60 秒後重試' (#10) from develop into master
Reviewed-on: #10
2026-03-26 01:34:26 +00:00
jiantw83 c6483a0c9a Merge pull request 'feat: 安裝缺少的工具' (#9) from develop into master
Reviewed-on: #9
2026-03-26 01:31:39 +00:00
jiantw83 9a760e3693 Merge pull request 'feat: 將基底映象檔改為 ubuntu 讓基礎指令可以使用' (#8) from develop into master
Reviewed-on: #8
2026-03-26 01:29:05 +00:00
jiantw83 21958a895e Merge pull request 'feat: 安裝 coreutils 讓腳本可以執行 date 指令' (#7) from develop into master
Reviewed-on: #7
2026-03-26 01:26:35 +00:00
jiantw83 da34ef84e3 Merge pull request 'feat: 優化檢查流程' (#6) from develop into master
Reviewed-on: #6
2026-03-26 01:11:25 +00:00
jiantw83 fd7ffee647 Merge pull request 'feat: 使用 bash 預設的指令' (#5) from develop into master
Reviewed-on: #5
2026-03-25 14:22:14 +00:00
jiantw83 13e943e32b Merge pull request 'feat: 使用 sleep 的絕對路徑' (#4) from develop into master
Reviewed-on: #4
2026-03-25 14:20:07 +00:00
jiantw83 1465691595 Merge pull request 'test: 安裝 coreutils 才能使用 sleep 指令' (#3) from develop into master
Reviewed-on: #3
2026-03-25 14:17:35 +00:00
jiantw83 0f92c0443c Merge pull request 'feat: 安裝 sleep 套件' (#2) from develop into master
Reviewed-on: #2
2026-03-25 14:14:13 +00:00
jiantw83 1112e0c1f2 Merge pull request 'feat: 使用無窮迴圈持續嘗試,直到成功取得有效狀態碼' (#1) from develop into master
Reviewed-on: #1
2026-03-25 14:09:24 +00:00
6 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -18,7 +18,7 @@ description: Triage findings, fix real issues, and exclude false positives.
- info - info
3. Renumber from 1. 3. Renumber from 1.
4. Fix real issues. 4. Fix real issues.
5. Put false positives into `.gitea/ai-review/exclusions.json`, preserving the original wording, language, and semantics as much as possible. 5. Put false positives into `.gitea/ai-review/exclusions.json` as a top-level JSON array, preserving the original wording, language, and semantics as much as possible. Do not wrap the array in `exclusions` or `excluded_findings`.
6. Add tests when behavior changes. 6. Add tests when behavior changes.
## Output Rules ## Output Rules
@@ -26,4 +26,5 @@ description: Triage findings, fix real issues, and exclude false positives.
- Keep the final list short. - Keep the final list short.
- Keep numbering contiguous. - Keep numbering contiguous.
- Preserve file path, location, and fix. - Preserve file path, location, and fix.
- When writing exclusions, always output a top-level JSON array.
- When writing exclusions, prefer the original issue text over paraphrased rewrites. - When writing exclusions, prefer the original issue text over paraphrased rewrites.
+2 -1
View File
@@ -21,7 +21,7 @@ It is also used when some findings are false positives and should be moved into
4. Renumber the sorted list from 1 upward. 4. Renumber the sorted list from 1 upward.
5. Rewrite each finding concisely so the final list reads cleanly and consistently. 5. Rewrite each finding concisely so the final list reads cleanly and consistently.
6. If a finding is a false positive, do not keep it in the final list. 6. If a finding is a false positive, do not keep it in the final list.
7. Add false positives to the exclusions list using the existing schema in the repo or task context, and preserve the original finding wording as much as possible, including language and semantics. 7. Add false positives to the exclusions list as a top-level JSON array in `.gitea/ai-review/exclusions.json`, and preserve the original finding wording as much as possible, including language and semantics. Do not wrap the array in `exclusions` or `excluded_findings`.
## Resolution Flow ## Resolution Flow
@@ -41,5 +41,6 @@ After the list is merged and ordered, resolve the remaining findings one by one.
- Keep numbering contiguous after filtering and merging. - Keep numbering contiguous after filtering and merging.
- Preserve useful details like file path, location, and suggested fix. - Preserve useful details like file path, location, and suggested fix.
- Keep exclusions entries minimal and consistent with the project schema. - Keep exclusions entries minimal and consistent with the project schema.
- When writing exclusions, always output a top-level JSON array.
- When writing exclusions, prefer the original issue text and language; only paraphrase if needed to fit the schema. - When writing exclusions, prefer the original issue text and language; only paraphrase if needed to fit the schema.
- If the source already provides a severity or title, keep it unless it conflicts with the final ordering. - If the source already provides a severity or title, keep it unless it conflicts with the final ordering.
@@ -1,4 +1,4 @@
interface: interface:
display_name: "Triage Findings" display_name: "Triage Findings"
short_description: "Triage, sort, fix, and exclude review findings" short_description: "Triage, sort, fix, and exclude review findings"
default_prompt: "Use $triage-findings to merge review findings, sort and renumber them by severity, resolve real issues one by one, and add false positives to exclusions." default_prompt: "Use $triage-findings to merge review findings, sort and renumber them by severity, resolve real issues one by one, and add false positives to `.gitea/ai-review/exclusions.json` as a top-level JSON array."
+2 -1
View File
@@ -18,7 +18,7 @@ description: Triage findings, fix real issues, and exclude false positives.
- info - info
3. Renumber from 1. 3. Renumber from 1.
4. Fix real issues. 4. Fix real issues.
5. Put false positives into `.gitea/ai-review/exclusions.json`, preserving the original wording, language, and semantics as much as possible. 5. Put false positives into `.gitea/ai-review/exclusions.json` as a top-level JSON array, preserving the original wording, language, and semantics as much as possible. Do not wrap the array in `exclusions` or `excluded_findings`.
6. Add tests when behavior changes. 6. Add tests when behavior changes.
## Output Rules ## Output Rules
@@ -26,4 +26,5 @@ description: Triage findings, fix real issues, and exclude false positives.
- Keep the final list short. - Keep the final list short.
- Keep numbering contiguous. - Keep numbering contiguous.
- Preserve file path, location, and fix. - Preserve file path, location, and fix.
- When writing exclusions, always output a top-level JSON array.
- When writing exclusions, prefer the original issue text over paraphrased rewrites. - When writing exclusions, prefer the original issue text over paraphrased rewrites.
+1 -1
View File
@@ -7,7 +7,7 @@ Use the triage-finding workflow for review issue lists:
3. Sort by severity: `critical` -> `warning` -> `info`. 3. Sort by severity: `critical` -> `warning` -> `info`.
4. Renumber from 1. 4. Renumber from 1.
5. Fix real issues with the smallest safe change. 5. Fix real issues with the smallest safe change.
6. Put false positives into `.gitea/ai-review/exclusions.json`, preserving the original wording, language, and semantics as much as possible. 6. Put false positives into `.gitea/ai-review/exclusions.json` as a top-level JSON array, preserving the original wording, language, and semantics as much as possible. Do not wrap the array in `exclusions` or `excluded_findings`.
7. Add or update tests when behavior changes. 7. Add or update tests when behavior changes.
8. Re-check after each fix. 8. Re-check after each fix.
+1 -1
View File
@@ -1,7 +1,7 @@
FROM ubuntu:24.04 FROM ubuntu:24.04
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \ && apt-get install -y --no-install-recommends curl ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY rootCA.pem /usr/local/share/ca-certificates/rootCA.crt COPY rootCA.pem /usr/local/share/ca-certificates/rootCA.crt