chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

(#107) Add sending of notifications #113

Closed gep13 closed 1 year ago

gep13 commented 1 year ago

Description Of Changes

This commit adds the ability to send notifications to Mastodon, Discord, and Slack. There is also a partial implementation of posting to Twitter but this is known not to work, since there has been a change to the Twitter API. In order for notifications to be sent, the necessary environment variables need to be set. By default, an attempt will be made to send a notification to all configured destinations, when running --target=send-notifications, but this can be overridden either through setting the "should" parameter in the recipe.cake file, or by passing the "should" command line option to false.

Motivation and Context

We need to be more consistent about how/when notifications are made, and what information is sent out.

Testing

The changes in this PR have been tested throughout the last few releases of Chocolatey products, and everything has worked as expected.

Operating Systems Testing

Change Types Made

Change Checklist

Related Issue

Fixes #107