feat(confluence-cli): 改进 Markdown 发布与附件处理#35
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
confluence-cli的发布链路对 Confluence Data Center / Server 的行为控制不够直接,附件更新和页面更新流程也不够稳定。What
confluence_api_client改为基于httpx的 REST 封装,显式处理认证、页面版本递增、附件创建与附件更新。publish-markdown的 Markdown 转换流程,基于markdown-it-py支持列表、表格、围栏代码块、本地附件链接和本地图片,并在附件上传后回填最终链接。confluence_api_client与markdown_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_storageRisks
publish-markdown现在仅支持storage,若仍传入其他body_format会直接报错,需要同步调整调用方式。