Conversation
Allow assigning an existing label to a library item via `paperpile label assign <item_id> <label_name>`. The command resolves the label name to its ID, appends it to the item's label list, and pushes the update through the Sync API. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Sync API requires mcollection "Library" (not "LibraryItems") for item updates, plus a "fields" key and "updated" timestamp in the data payload. Without these the server rejects with a 400 schema validation error. Matches the pattern used by TrashItem in delete.go. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve merge conflicts after label delete was merged into main. Both label assign and label delete commands are now present. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Assign existing labels to library items from the CLI
Adds
paperpile label assign <item_id> <label_name>which resolves the labelname to its ID, appends it to the item's current label list, and pushes the
update through the Sync API. Errors if the label is already assigned.
Test plan
go vetandgo test ./...pass🤖 Generated with Claude Code