Skip to content

feat(confluence-cli): 改进 Markdown 发布与附件处理#35

Merged
DCjanus merged 5 commits intomasterfrom
feat/platform-cli-skills
Mar 26, 2026
Merged

feat(confluence-cli): 改进 Markdown 发布与附件处理#35
DCjanus merged 5 commits intomasterfrom
feat/platform-cli-skills

Conversation

@DCjanus
Copy link
Copy Markdown
Owner

@DCjanus DCjanus commented Mar 26, 2026

Why

  • 当前 confluence-cli 的发布链路对 Confluence Data Center / Server 的行为控制不够直接,附件更新和页面更新流程也不够稳定。
  • 需要补齐 Markdown 到 Confluence storage 的转换覆盖,并补充相关回归测试。

What

  • confluence_api_client 改为基于 httpx 的 REST 封装,显式处理认证、页面版本递增、附件创建与附件更新。
  • 重写 publish-markdown 的 Markdown 转换流程,基于 markdown-it-py 支持列表、表格、围栏代码块、本地附件链接和本地图片,并在附件上传后回填最终链接。
  • 新增 confluence_api_clientmarkdown_to_storage 测试,并补充 create-skill / gitlab-cli 的文档说明。

Testing

  • uv run --with httpx --with markdown-it-py --with pydantic --with rich --with typer python -m unittest skills.confluence-cli.scripts.tests.test_confluence_api_client skills.confluence-cli.scripts.tests.test_markdown_to_storage

Risks

  • Breaking change: publish-markdown 现在仅支持 storage,若仍传入其他 body_format 会直接报错,需要同步调整调用方式。

DCjanus and others added 5 commits March 24, 2026 10:28
Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
…kills

# Conflicts:
#	skills/github-cli/SKILL.md
#	skills/gitlab-cli/SKILL.md
Co-authored-by: OpenAI Codex <codex@openai.com>
@DCjanus DCjanus merged commit 8466560 into master Mar 26, 2026
1 check passed
@DCjanus DCjanus deleted the feat/platform-cli-skills branch March 26, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant