Skip to content

Commit

Permalink
MSTeams Triggers.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Dec 20, 2024
1 parent 60b07bd commit 2a4f3db
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 352 deletions.
1 change: 0 additions & 1 deletion Notifications/Slack.Scripts/.universal/scripts.ps1

This file was deleted.

11 changes: 0 additions & 11 deletions Notifications/Slack.Scripts/README.md

This file was deleted.

134 changes: 0 additions & 134 deletions Notifications/Slack.Scripts/Slack.Scripts.psd1

This file was deleted.

70 changes: 0 additions & 70 deletions Notifications/Slack.Scripts/Slack.Scripts.psm1

This file was deleted.

Binary file removed Notifications/Slack.Scripts/images/notification.png
Binary file not shown.
1 change: 0 additions & 1 deletion Notifications/Teams.Scripts/.universal/scripts.ps1

This file was deleted.

134 changes: 0 additions & 134 deletions Notifications/Teams.Scripts/Teams.Scripts.psd1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
New-PSUScript -Module "PowerShellUniversal.Triggers.MSTeams" -Command "Send-PSUTeamsNotification"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@{
RootModule = 'PowerShellUniversal.Triggers.MSTeams.psm1'
ModuleVersion = '1.0.0'
GUID = 'cc203207-5dea-462e-896e-9ce46e731074'
Author = 'Ironman Software'
CompanyName = 'Ironman Software'
Copyright = '(c) Ironman Software. All rights reserved.'
Description = 'Scripts for sending triggers to Microsoft Teams.'
FunctionsToExport = @('Send-PSUTeamsNotification')
PrivateData = @{

PSData = @{
Tags = @('script', "PowerShellUniversal", "triggers", "MSTeams")
LicenseUri = 'https://github.com/ironmansoftware/scripts/blob/main/LICENSE'
ProjectUri = 'https://github.com/ironmansoftware/scripts/tree/main/Triggers/PowerShellUniversal.Triggers.MSTeams'
IconUri = 'https://raw.githubusercontent.com/ironmansoftware/scripts/main/images/script.png'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
You can use the `Send-PSUTeamsNotification` function to send a message to a Microsoft Teams channel. It automatically processes trigger data to send formatted messages.

```powershell
New-PSUTrigger -TriggerScript 'Teams.Scripts\Send-PSUTeamsNotification' -EventType JobFailed
New-PSUTrigger -TriggerScript 'PowerShellUniversal.Triggers.MSTeams\Send-PSUTeamsNotification' -EventType JobFailed
```

0 comments on commit 2a4f3db

Please sign in to comment.