Skip to content

feat(drift): Add Microsoft Teams Webhook for drift notification (#2276)#2623

Open
Mallikarjunadevops wants to merge 1 commit intodiggerhq:developfrom
Mallikarjunadevops:feature/issue-2276-msteams-notification
Open

feat(drift): Add Microsoft Teams Webhook for drift notification (#2276)#2623
Mallikarjunadevops wants to merge 1 commit intodiggerhq:developfrom
Mallikarjunadevops:feature/issue-2276-msteams-notification

Conversation

@Mallikarjunadevops
Copy link
Copy Markdown

Resolves #2276.

Description

This PR introduces Microsoft Teams integration for drift detection notifications, mirroring the exact functional behavior and architecture of the existing Slack implementation.

Changes Made:

  • Core Functionality: Added msteams.go utilizing standard MS Teams incoming Webhooks via an HTTP POST containing {"text": "<message>"} payloads. Formatted message strings to use universal warning unicode emojis (⚠️) compatible with Teams instead of Slack-specific :warning: syntax.
  • Provider Routing: Updated DriftNotificationProviderBasic (and the ee/ Advanced provider) to intercept and handle INPUT_DRIFT_DETECTION_MS_TEAMS_NOTIFICATION_URL.
  • Action.yml: Added drift-detection-ms-teams-notification-url to the GitHub Action specifications following the build digger and run digger contribution requirements.
  • Testing: Implemented msteams_test.go to provide matching code coverage to the existing Slack test suite to ensure robust payload splitting.
  • Documentation: Appended the new Teams configuration input to docs/ce/reference/action-inputs.mdx.

Related Testing

  • Verified code structure mimics existing, battle-tested slack.go implementation.
  • Implemented msteams_test.go allowing GitHub Actions CI to validate the webhook formatting automatically on this PR.

Disclosure: I consulted with an AI assistant to understand the Digger codebase and help author the implementation for this MS Teams feature. The logic was manually verified locally against the existing Slack payload architecture.

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.

Request to add MS teams url for drift notification

1 participant