Adds new command outlook event add. Closes #7123 - #7478
Open
MartinM85 wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Microsoft Graph-backed Outlook command (m365 outlook event add) to create calendar events, including validation, tests, and documentation updates across the CLI and docs site.
Changes:
- Introduces
outlook event addcommand implementation and command registration. - Adds Graph date-time validation helper plus unit tests.
- Adds command docs page and sidebar entry.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils/validation.ts | Adds isValidGraphDateTime helper for validating Graph-style date-time strings. |
| src/utils/validation.spec.ts | Adds unit tests for isValidGraphDateTime. |
| src/m365/outlook/commands/event/event-add.ts | Implements m365 outlook event add including option schema, validation refinements, and request payload construction. |
| src/m365/outlook/commands/event/event-add.spec.ts | Adds comprehensive tests for option validation and request body construction. |
| src/m365/outlook/commands.ts | Registers the new EVENT_ADD command name. |
| docs/src/config/sidebars.ts | Adds the new command doc page to the Outlook sidebar navigation. |
| docs/docs/cmd/outlook/event/event-add.mdx | Adds end-user documentation for the new command, options, examples, and permissions. |
Suppressed comments (1)
src/m365/outlook/commands/event/event-add.ts:315
- When
reminderMinutesBeforeStartis0, it won’t be sent to Graph because the check uses a truthy condition. Use anundefinedcheck so0is preserved.
if (args.options.isReminderOn && args.options.reminderMinutesBeforeStart) {
body['reminderMinutesBeforeStart'] = args.options.reminderMinutesBeforeStart;
}
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Closes #7123