Skip to content

feat(calendar): add --send-updates flag to update command#177

Closed
ejc3 wants to merge 1 commit intosteipete:mainfrom
ejc3:add-send-updates-to-calendar-update
Closed

feat(calendar): add --send-updates flag to update command#177
ejc3 wants to merge 1 commit intosteipete:mainfrom
ejc3:add-send-updates-to-calendar-update

Conversation

@ejc3
Copy link

@ejc3 ejc3 commented Feb 4, 2026

Summary

Adds the --send-updates flag to gog calendar update to allow sending email notifications to attendees when updating calendar events.

Changes

  • Added SendUpdates field to CalendarUpdateCmd struct
  • Modified the Run method to validate and pass the sendUpdates parameter to the API
  • Added 2 tests to verify the flag works correctly

Flag Values

The flag supports the same values as the create command:

  • all: Notifications sent to all guests (default when specified)
  • externalOnly: Notifications sent to non-Google Calendar guests only
  • none: No notifications sent

Example Usage

# Notify all attendees about the time change
gog calendar update primary abc123 --from 2025-01-15T14:00:00Z --to 2025-01-15T15:00:00Z --send-updates=all

# Update silently (no notifications)
gog calendar update primary abc123 --summary "New Title" --send-updates=none

Testing

  • All existing tests pass
  • Added TestCalendarUpdateCmd_SendUpdates - verifies --send-updates=all
  • Added TestCalendarUpdateCmd_SendUpdatesExternalOnly - verifies --send-updates=externalOnly

Related

Closes #190 (partial - this PR addresses the update command; issue #50 addressed the create command)

Adds the --send-updates flag to 'gog calendar update' to allow sending
email notifications to attendees when updating calendar events.

The flag supports the same values as the create command:
- all: Notifications sent to all guests (default)
- externalOnly: Notifications sent to non-Google Calendar guests only
- none: No notifications sent

This matches the Google Calendar API's sendUpdates parameter for the
events.patch endpoint.

Closes #601 (if that issue exists for this feature request)
@ejc3 ejc3 force-pushed the add-send-updates-to-calendar-update branch from 93a0936 to 74857f5 Compare February 15, 2026 06:25
@steipete
Copy link
Owner

steipete commented Mar 7, 2026

Closing as already landed. is on now, with tests and docs, via the work tracked in #163. This PR's behavior is already present in current and README/changelog coverage.

@steipete steipete closed this Mar 7, 2026
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.

2 participants