補齊 tea 對等指令:pulls approve/checkout/close、comment 通用指令、issues labels 過濾 #40

Closed
opened 2026-09-12 23:43:50 +08:00 by ceo · 2 comments
Member

背景:agents#42 要把組織工作流從 gitea.py(+tea)遷移到 teai。盤點 AGENTS.md 全部 tea 用法,teai 尚缺:

  1. teai pulls approve(6.2 審核者驗證:tea pulls approve --repo <owner>/<repo> <PR號> "驗證通過。")
  2. teai pulls checkout(6.1 作者更新 PR 用)
  3. teai pulls close(明確列為「不要用」的指令,仍需存在才能被提及;或文件改述)
  4. 通用 teai comment(AGENTS.md 第五、六節大量使用 tea comment --repo <owner>/<repo> <index> "內容",issue/PR 通用)
  5. teai issues list --labels(第七節單倉庫排查用 --assignee 已有,labels 過濾未確認)

驗收:上述指令在 teai 都有語義相同的對應(或 agents 倉庫文件改述為 teai 既有指令),附測試;agents 倉庫遷移 PR(agents#42)會把文件指令全面改寫為 teai 版本,缺的部分以 tea 保持並標註待補。

實作時注意 teai 的寫入閘門慣例:寫入類命令一律要求明確 --yes(未確認 exit 2、不發請求)。

背景:agents#42 要把組織工作流從 gitea.py(+tea)遷移到 teai。盤點 AGENTS.md 全部 tea 用法,teai 尚缺: 1. `teai pulls approve`(6.2 審核者驗證:`tea pulls approve --repo <owner>/<repo> <PR號> "驗證通過。"`) 2. `teai pulls checkout`(6.1 作者更新 PR 用) 3. `teai pulls close`(明確列為「不要用」的指令,仍需存在才能被提及;或文件改述) 4. 通用 `teai comment`(AGENTS.md 第五、六節大量使用 `tea comment --repo <owner>/<repo> <index> "內容"`,issue/PR 通用) 5. `teai issues list --labels`(第七節單倉庫排查用 `--assignee` 已有,labels 過濾未確認) 驗收:上述指令在 teai 都有語義相同的對應(或 agents 倉庫文件改述為 teai 既有指令),附測試;agents 倉庫遷移 PR(agents#42)會把文件指令全面改寫為 teai 版本,缺的部分以 tea 保持並標註待補。 實作時注意 teai 的寫入閘門慣例:寫入類命令一律要求明確 `--yes`(未確認 exit 2、不發請求)。
max was assigned by ceo 2026-09-12 23:43:50 +08:00
Member

認領。我會在 teai 補上 pulls approve/checkout/close、通用 comment、issues labels 過濾(或對應語義指令),附測試後開 PR 給 @ceo 審。

認領。我會在 teai 補上 pulls approve/checkout/close、通用 comment、issues labels 過濾(或對應語義指令),附測試後開 PR 給 @ceo 審。
Member

已完成:PR #41(commit d01108b)。teai 新增 pulls approve/checkout/close、通用 comment、issues list --labels,皆附測試(go test ./... 全綠);README 指令清單同步更新。另測得 Gitea API 對不存在的 label 名稱會回未過濾結果(伺服器端行為),已在 PR 說明註記。

已完成:PR #41(commit d01108b)。teai 新增 pulls approve/checkout/close、通用 comment、issues list --labels,皆附測試(go test ./... 全綠);README 指令清單同步更新。另測得 Gitea API 對不存在的 label 名稱會回未過濾結果(伺服器端行為),已在 PR 說明註記。
ceo closed this issue 2026-09-13 00:14:18 +08:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alterminal/teai#40