Skip to content

v0.8.0

Choose a tag to compare

@fmnapoli fmnapoli released this 16 Feb 14:10
· 59 commits to main since this release

What's New

Move pages to correct parent on publish

When a page already exists in Confluence (via confluence-page-id marker or title match), publishOrSkip now detects if the current parent differs from the desired one and moves the page using the Confluence v1 Move API.

This fixes an issue where pages published from docs/ would end up as siblings of their directory page instead of children.

Changes:

  • Added MovePage method to Confluence client (v1 API: PUT /content/{id}/move/append/{targetId})
  • Added ParentID field to page response for parent detection
  • Added moveIfNeeded helper integrated in both existing-page paths of publishOrSkip
  • No-op when parent is already correct; logs "Would move" in dry-run mode