Skip to content

ページ更新の差分と結果を出力する - #56

Open
yuji38kwmt wants to merge 1 commit into
mainfrom
feat/page-update-preview
Open

yuji38kwmt wants to merge 1 commit into
mainfrom
feat/page-update-preview

Conversation

@yuji38kwmt

Copy link
Copy Markdown
Collaborator

変更内容

  • page update --dry_run で対象ページ、現在の版、本文の差分を確認できます。
  • --json でプレビューと更新結果をJSONで取得できます。対話プロンプトは標準エラー出力に出します。

確認

  • プレビュー時に書き込みが発生しないこと、差分、更新後の版、キャンセル、認証プロンプトと JSON 出力の分離をテストしました。
  • Ruff、mypy、pytest を実行しました。

Copilot AI balanced review requested due to automatic review settings November 26, 2026 21:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the page-update preview and structured-output changes.

No open issues 🎉

What changed in this PR

Adds preview and structured result output to the Confluence page-update command, helping users inspect changes before applying them and consume results programmatically.

Changes:

  • Adds --dry_run to show the target page, current version, and body diff without updating it.
  • Adds --json output for previews, successful updates, and cancellations.
  • Moves interactive prompts to stderr and adds tests and documentation for the new behavior.
File Description
tests/​test_page_update_output.py Tests previews, update results, cancellation, and prompt separation.
docs/​command_reference/​page/​update.rst Documents preview usage and JSON fields.
confluence/​page/​update_page.py Implements body diffs, dry-run previews, and JSON results.
confluence/​common/​cli.py Routes confirmation, URL, and username prompts to stderr.

Review effort: Balanced

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.

2 participants