Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(notifications): add Google Chat/Spaces as notification provider#3278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Divkix wants to merge1 commit intoDokploy:canary
base:canary
Choose a base branch
Loading
fromDivkix:fix-3153

Conversation

@Divkix
Copy link
Contributor

Summary

  • Adds Google Chat/Spaces as a new notification provider
  • Users can configure a Google Chat incoming webhook URL to receive formatted notifications for all Dokploy events
  • Follows the existing Lark implementation pattern (webhook-only, simplest provider type)

Changes

Backend

  • Database schema: AddedgoogleChat table, enum value, and API schemas
  • Service layer: AddedcreateGoogleChatNotification andupdateGoogleChatNotification functions
  • API routes: AddedcreateGoogleChat,updateGoogleChat,testGoogleChatConnection endpoints
  • Notification utils: AddedsendGoogleChatNotification function

Event Handlers

Updated all 7 notification event files to support Google Chat:

  • Build success/error notifications
  • Database/volume backup notifications
  • Docker cleanup notifications
  • Dokploy restart notifications
  • Server threshold alerts

Frontend

  • AddedGoogleChatIcon component
  • Added full UI support in notification settings form

Test plan

  • Generate database migration withpnpm --filter dokploy run migration:generate
  • Run migrations
  • Navigate to Settings > Notifications
  • Add new Google Chat notification with webhook URL
  • Test connection button sends test message
  • Trigger a deployment and verify notification received in Google Chat

Related Issue

Closes#3153

Add Google Chat/Spaces webhook integration for receiving deploymentand system notifications. Users can configure a Google Chat incomingwebhook URL to receive formatted notifications for all Dokploy events.Changes include:- Database schema with googleChat table and notificationType enum- Service layer with create/update functions- API routes for create, update, and test connection- Event handlers for all notification types (build success/error,  database/volume backup, docker cleanup, dokploy restart,  server threshold)- Frontend icon and form handlingClosesDokploy#3153
CopilotAI review requested due to automatic review settingsDecember 15, 2025 06:37
Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This PR adds Google Chat (Spaces) as a new notification provider to Dokploy, following the webhook-only Lark implementation pattern. Users can now configure Google Chat incoming webhooks to receive formatted notifications for all supported Dokploy events including deployments, backups, and system alerts.

Key Changes:

  • Added complete Google Chat notification provider support with database schema, service layer, API endpoints, and utility functions
  • Integrated Google Chat notifications across all 7 notification event handlers (build success/error, database/volume backup, Docker cleanup, Dokploy restart, server threshold alerts)
  • Added frontend UI components including GoogleChatIcon and full form support in notification settings

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/server/src/db/schema/notification.tsAdded googleChat table schema, enum value, and API validation schemas (apiCreateGoogleChat, apiUpdateGoogleChat, apiTestGoogleChatConnection)
packages/server/src/services/notification.tsImplemented createGoogleChatNotification and updateGoogleChatNotification functions with transaction-based database operations; added googleChat to findNotificationById relations
apps/dokploy/server/api/routers/notification.tsAdded createGoogleChat, updateGoogleChat, and testGoogleChatConnection tRPC endpoints with proper authorization checks; included googleChat in notification listing
packages/server/src/utils/notifications/utils.tsImplemented sendGoogleChatNotification function following the Lark pattern with basic error handling
packages/server/src/utils/notifications/build-success.tsAdded Google Chat support for build success notifications with formatted message including project, application, environment details and build link
packages/server/src/utils/notifications/build-error.tsAdded Google Chat support for build error notifications with truncated error messages (500 char limit)
packages/server/src/utils/notifications/database-backup.tsAdded Google Chat support for database backup notifications (success/error) with status emojis and error message handling
packages/server/src/utils/notifications/volume-backup.tsAdded Google Chat support for volume backup notifications including backup size and error information
packages/server/src/utils/notifications/dokploy-restart.tsAdded Google Chat support for Dokploy server restart notifications
packages/server/src/utils/notifications/docker-cleanup.tsAdded Google Chat support for Docker cleanup notifications with cleanup message details
packages/server/src/utils/notifications/server-threshold.tsAdded Google Chat support for server threshold alerts (CPU/Memory) with current values and thresholds
apps/dokploy/components/icons/notification-icons.tsxAdded GoogleChatIcon component with official Google Chat branding colors
apps/dokploy/components/dashboard/settings/notifications/handle-notifications.tsxAdded full Google Chat UI support including schema validation, mutation hooks, form fields, connection testing, and notification type mapping

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@SiumauricioSiumauricioAwaiting requested review from SiumauricioSiumauricio is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

feat: add Google Chat / Spaces as a notification provider

1 participant

@Divkix

[8]ページ先頭

©2009-2025 Movatter.jp