Repository navigation
ページ更新の差分と結果を出力する - #56
Open
yuji38kwmt wants to merge 1 commit into
Open
yuji38kwmt wants to merge 1 commit into
yuji38kwmt wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 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_runto show the target page, current version, and body diff without updating it. - Adds
--jsonoutput 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
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.
変更内容
page update --dry_runで対象ページ、現在の版、本文の差分を確認できます。--jsonでプレビューと更新結果をJSONで取得できます。対話プロンプトは標準エラー出力に出します。確認