Skip to content

feat(wtsite): allow an edit comment on upload_page - #151

Open
LukasGold wants to merge 1 commit into
mainfrom
fix/upload-page-comment
Open

feat(wtsite): allow an edit comment on upload_page#151
LukasGold wants to merge 1 commit into
mainfrom
fix/upload-page-comment

Conversation

@LukasGold

Copy link
Copy Markdown
Contributor

Closes #112

Changes

  • WtSite.UploadPageParam gains a comment field, mirroring the one on CopyPagesParam
  • upload_page forwards it to WtPage.edit, which has accepted a comment all along
  • tests/test_wtsite_upload_page.py: comment reaches a single page, reaches every page of a batch, and defaults to None

Rationale

WtPage.edit(comment=...) already existed, but upload_page called a bare page.edit(), so bulk uploads landed in the page history unattributed with no way to pass a summary short of editing each page directly.

Default behaviour is unchanged: with no comment set, edit(None) is exactly the previous call.

- add comment field to WtSite.UploadPageParam
- forward it to WtPage.edit, which already accepted one
- closes #112
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Release preview

Merging this PR would release v2.1.0 (current: v2.0.2).

Changelog preview (truncated)
## v2.1.0 (2026-09-01)

### Features

- **wtsite**: Allow an edit comment on upload_page
  ([`0d3899c`](https://github.com/OpenSemanticLab/osw-python/commit/0d3899c782998c5750338dc11beea569207cb26c))

### Testing

- Rename oold.py to oold_test.py so its tests are collected
  ([`20072a9`](https://github.com/OpenSemanticLab/osw-python/commit/20072a9249cd97126a222c62a70f84e0433343ef))

Preview via python-semantic-release and conventional commits.

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.

osw.wtsite.WtSite.upload_page should allow a comment on the changes made

1 participant