voxpupuli / webhook-go

Puppet Webhook port in Golang
Apache License 2.0
16 stars 12 forks source link

add MS Teams to chatops #151

Closed tmu-sprd closed 4 months ago

tmu-sprd commented 5 months ago

This PR adds the ability to send notifications to Microsoft Teams. Currently Slack and RocketChat are supported.

The notifications are sent via an AdaptiveCard. The messages are colored: green for successful, red for errors and orange, if there are warnings in the r10k output. The PostMessage function is extended to add the output of r10k hidden underneath a "Details" button.

This is the first time, I did something in Go. If there is something to improve, I'm happy for suggestions.

dhollinger commented 4 months ago

@tmu-sprd anything else you're waiting on before we merge this?

tmu-sprd commented 4 months ago

@dhollinger I'm currently preparing a unit test for the teams function. Should be done this week.

tmu-sprd commented 4 months ago

@dhollinger Added unit test for teams. My changes are done and ready for review. Thanks a lot