Skip to content

feat(comments): add resolve command and docs comments aliases#1

Merged
chadrwalters merged 1 commit intomainfrom
chadwalters/eng-4253-docs-comments
Feb 4, 2026
Merged

feat(comments): add resolve command and docs comments aliases#1
chadrwalters merged 1 commit intomainfrom
chadwalters/eng-4253-docs-comments

Conversation

@chadrwalters
Copy link

Summary

  • Add drive comments resolve command to mark comments as resolved
  • Add docs comments subcommand group that aliases to drive comments

Changes

New Command: drive comments resolve

Mark a comment as resolved using PATCH with resolved: true:

gog drive comments resolve <fileId> <commentId>
gog drive comments resolve <fileId> <commentId> --json

New Subcommand Group: docs comments

Provides a more intuitive command path for Google Docs users:

Command Description
gog docs comments list <docId> List comments on a Google Doc
gog docs comments read <docId> <commentId> Read a comment with replies
gog docs comments create <docId> "text" [--quoted "text"] Create a comment
gog docs comments reply <docId> <commentId> "text" Reply to a comment
gog docs comments resolve <docId> <commentId> Mark comment as resolved
gog docs comments delete <docId> <commentId> Delete a comment

Implementation

The docs comments implementation uses struct embedding to reuse the drive comments handlers, ensuring:

  • Consistent behavior between drive comments and docs comments
  • Zero code duplication
  • Automatic parity for JSON and plain text output

Test plan

  • Unit tests for drive comments resolve (JSON + plain text output)
  • Unit tests for docs comments resolve (verifies embedding works)
  • Unit tests for docs comments read (verifies alias to get)
  • All existing tests pass

Related

🤖 Generated with Claude Code

Add `drive comments resolve` command to mark comments as resolved using
the Drive API's PATCH endpoint with resolved=true. This enables
automated comment workflow management.

Add `docs comments` subcommand group that aliases to drive comments,
providing a more intuitive command path for Google Docs users:
- docs comments list
- docs comments read (alias to get)
- docs comments create
- docs comments reply
- docs comments resolve
- docs comments delete

The docs comments implementation uses struct embedding to reuse the
drive comments handlers, ensuring consistent behavior and zero code
duplication.

Closes: ENG-4253

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@chadrwalters chadrwalters merged commit 3d6ed27 into main Feb 4, 2026
4 checks passed
@chadrwalters chadrwalters deleted the chadwalters/eng-4253-docs-comments branch February 4, 2026 21:05
@chadrwalters chadrwalters restored the chadwalters/eng-4253-docs-comments branch February 4, 2026 21:53
@chadrwalters chadrwalters deleted the chadwalters/eng-4253-docs-comments branch February 6, 2026 21:23
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.

1 participant