feat(gmail): add messages modify command for single-message label changes#281
Merged
steipete merged 2 commits intoopenclaw:mainfrom Mar 8, 2026
Merged
Conversation
…nges Adds `gog gmail messages modify <messageId> --add <labels> --remove <labels>` so users can add/remove labels on individual messages, not just threads. Previously only `gmail thread modify` (all messages in a thread) and `gmail batch modify` (multiple message IDs) were available. This fills the gap for single-message label operations like trash, archive, or custom label assignment. Fixes openclaw#277 Co-Authored-By: Claude <noreply@anthropic.com>
d96893b to
d195e1d
Compare
Collaborator
|
Landed via temp rebase onto
Fixups included:
Thanks @zerone0x! |
klodr
pushed a commit
to klodr/gogcli
that referenced
this pull request
Apr 22, 2026
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.
Summary
Fixes #277
Adds
gog gmail messages modify <messageId> --add <labels> --remove <labels>so users can add/remove labels on individual messages, not just threads.Changes
GmailMessagesModifyCmdto themessagessubcommand group, mirroring the existingthread modifypatternUsers.Messages.Modifyfor single-message label operations--addand--removeflags with comma-separated label names or IDs--dry-run,--json, and label name-to-ID resolution (consistent with existing commands)Usage
Note
maincurrently has a pre-existing build error incontacts_crud.go(parameter type grouping bug). This PR does not touch that file. Tests will pass once that is resolved separately.🤖 Generated with Claude Code