Skip to content
Francesco Castaldi
← Open source

Mattermost Microsoft Calendar plugin

Four merged pull requests for the plugin connecting Mattermost to Microsoft 365 calendars: time formatting, OAuth connect handling, and token lifecycle tests.

Role
Contributor
When
September 2026 to present
Stack
Go, Mattermost plugin API, Microsoft Graph

Context

Mattermost is an open source team chat platform. Its Microsoft Calendar plugin, written in Go, connects a user's Microsoft 365 calendar to Mattermost: daily summaries, event reminders and invitations arrive as chat messages.

What I contributed

Readable event times (#550, merged). Event times were formatted with Go's time.Kitchen layout, which prints 6:00PM with no space before the period. I introduced a single TimeFormat constant (3:04 PM) and used it everywhere the plugin renders events: daily summaries, event attachments, timezone options and notifications. A unit test checks the output, for example 6:00 PM - 6:15 PM (Europe/Madrid).

User time format preference (#553, merged). Respects each user's 12 or 24 hour preference instead of always using the 12 hour clock across calendar views and notifications.

Token refresh and store lifecycle tests (#554, merged). Comprehensive unit test suite for OAuth token refresh and store lifecycle.

OAuth connect POST handling (#552, merged). Accepts POST requests on the OAuth connect endpoint and answers with a goto_location, so the interactive "connect" button in a message starts the Microsoft 365 sign in instead of failing with 405 Method Not Allowed.

Status

All four pull requests are merged upstream, each focused on a single issue from the project's tracker.

Pull requests

4 merged, 0 open, 0 closed. Status synced from GitHub.

← All projects