From 21fee016880f096d2738552550578272db907f43 Mon Sep 17 00:00:00 2001 From: liangxu Date: Thu, 7 May 2026 12:08:15 +0800 Subject: [PATCH] chore: scope desktop client build to apps/desktop-client and document regenerate route Drop the broad path filters that triggered the desktop client build on unrelated workspace changes, and add a swagger description for the existing article regenerate endpoint. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/desktop-client-build.yml | 5 ----- server/internal/shared/swagger/descriptions.go | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/workflows/desktop-client-build.yml b/.gitea/workflows/desktop-client-build.yml index ddbbcce..c48aee9 100644 --- a/.gitea/workflows/desktop-client-build.yml +++ b/.gitea/workflows/desktop-client-build.yml @@ -6,11 +6,6 @@ on: - main paths: - "apps/desktop-client/**" - - "packages/**" - - "package.json" - - "pnpm-lock.yaml" - - "pnpm-workspace.yaml" - - ".gitea/workflows/desktop-client-build.yml" workflow_dispatch: inputs: platforms: diff --git a/server/internal/shared/swagger/descriptions.go b/server/internal/shared/swagger/descriptions.go index 0337a0e..0409705 100644 --- a/server/internal/shared/swagger/descriptions.go +++ b/server/internal/shared/swagger/descriptions.go @@ -150,6 +150,7 @@ var routeDocs = map[string]routeDoc{ "POST /api/tenant/articles": {"创建文章", "手动创建一篇空文章草稿。"}, "POST /api/tenant/articles/generate-from-rule": {"根据 Prompt 规则生成文章", "基于已配置的 Prompt 规则生成一篇文章。"}, "POST /api/tenant/articles/imitations/generate": {"仿写生成文章", "基于参考文链接/原文进行仿写并生成新文章。"}, + "POST /api/tenant/articles/:id/regenerate": {"重新生成文章", "基于文章原始生成参数重新入队生成,并返回新的生成任务。"}, "POST /api/tenant/articles/:id/images": {"上传文章配图", "Multipart 上传文章正文使用的图片。"}, "POST /api/tenant/articles/:id/selection-optimize/stream": {"选区优化(SSE 流式)", "针对用户选中的段落做润色/改写,结果流式返回。"}, "GET /api/tenant/articles/:id": {"文章详情", "返回文章的完整结构(标题、大纲、正文、版本号等)。"},