diff --git a/src/sources/gitea.ts b/src/sources/gitea.ts index 0bcc34d..7862be5 100644 --- a/src/sources/gitea.ts +++ b/src/sources/gitea.ts @@ -128,6 +128,7 @@ export const giteaKind: SourceKind = { { key: 'DSH_SUPERAGENT_GITEA_URL', description: { zh: 'Gitea 实例地址,不带末尾斜杠', en: 'The Gitea instance URL without a trailing slash' } }, { key: 'DSH_SUPERAGENT_GITEA_ACCOUNT', description: { zh: '智能体的 Gitea 账号;这里的 Issue 评论都以它的名义发出', en: 'The agent\'s Gitea account; Issue comments here go out under its name' } }, { key: 'DSH_SUPERAGENT_GITEA_NUMBER', description: { zh: '接下工单的 Issue 或 PR 编号;工单不是从这个来源来的时为空', en: 'Number of the Issue or PR that started the ticket; empty when the ticket did not start on this Source' } }, + { key: 'DSH_SUPERAGENT_GITEA_KANBAN', description: { zh: '看板约定:仓库 wandering1/STM32F4-Base 的 Issue 挂着项目看板「项目跟踪」,列名与标签同名(Uncategorized、已完成、进行中、下一顺位、排队、等外部资源、暂缓、观察、开放问题)。这个 Gitea 版本没有 Projects API:改完标签或用户要求移卡后,运行 node C:/Users/67242/.dsh/sa-tools/card-sync.mjs [--to 列名] [--dry-run] 同步卡片,并在回复里报告它的 moved/kept 汇总;只碰这个看板,绝不直接操作数据库', en: 'Kanban convention for wandering1/STM32F4-Base: its Issues live on the board 项目跟踪 whose columns share names with the labels (Uncategorized, 已完成, 进行中, 下一顺位, 排队, 等外部资源, 暂缓, 观察, 开放问题). This Gitea version has no Projects API, so after changing labels or when asked to move a card, run node C:/Users/67242/.dsh/sa-tools/card-sync.mjs [--to 列名] [--dry-run] and report its moved/kept summary in the reply; touch only this board, never the database directly' } }, ], values: ({ deployment, config, trigger }) => { const number = trigger?.threads[0]?.source === SOURCE ? Number(trigger.meta.number) || 0 : 0