Skip to content

[do not merge] feat(metadata): support Confluence content status in publish and export - #1295

Draft
BenjaminShinar wants to merge 21 commits into
kovetskiy:masterfrom
BenjaminShinar:content_status_export_publish
Draft

BenjaminShinar wants to merge 21 commits into
kovetskiy:masterfrom
BenjaminShinar:content_status_export_publish

Conversation

@BenjaminShinar

@BenjaminShinar BenjaminShinar commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Feature request: #1307

Dependency

Depends on #1274. Do not merge before #1274.
This branch builds on the metadata listing changes and reuses their confluence.ContentStatus type.
After #1274 merges, rebase this branch onto master to remove the listing changes from this PR.

Summary

  • Set a Confluence Cloud page status by display name in Markdown metadata. Omit the field to preserve the assigned status, or use ~ to clear it.
  • Add opt-in status export with --include-content-status for comment headers and YAML front matter.

Existing publish behavior

Mark creates an empty page before publishing its body. A later failure, such as a missing attachment, can leave that page behind. The page-specific status check also needs the page ID, so a status rejection on a first publish can leave an empty page.

Testing

  • Full race-enabled test suite, Go lint, and Markdown lint passed.
  • Live Confluence Cloud smoke tests covered setting, preserving, exporting, and clearing status. They also covered repeat publishes and --no-overwrite after an independent edit.

Related PR #1274 adds listing for Confluence labels and content statuses.

@BenjaminShinar
BenjaminShinar marked this pull request as draft November 24, 2026 09:14
@BenjaminShinar BenjaminShinar changed the title Support Confluence content status in publish and export feat(metadata): support Confluence content status in publish and export Nov 24, 2026
@BenjaminShinar
BenjaminShinar force-pushed the content_status_export_publish branch from 1b0a03c to 5c3fc3c Compare November 24, 2026 11:52
@BenjaminShinar BenjaminShinar changed the title feat(metadata): support Confluence content status in publish and export [do not merge] feat(metadata): support Confluence content status in publish and export Nov 24, 2026
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