Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

(gitter plugin) Fixing an issue where the MessageFormat isn't correctly formatted #156

Merged
merged 2 commits into from
Jun 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AU/Plugins/Gitter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $failedPackages = $Info.error_count.total
$gistUrl = $Info.plugin_results.Gist -split '\n' | select -Last 1
$packageCount = $Info.result.all.Length

$gitterMessage = ($MessageFormat = -f $packageCount, $updatedPackages, $publishedPackages, $failedPackages, $gistUrl)
$gitterMessage = ($MessageFormat -f $packageCount, $updatedPackages, $publishedPackages, $failedPackages, $gistUrl)

$arguments = @{
Body = if ($failedPackages -gt 0) { "message=$gitterMessage&level=error" } else { "message=$gitterMessage" }
Expand Down
4 changes: 2 additions & 2 deletions Plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ To set up plugin to create gist under your user name you need to give it your gi
1. Click on the icon for room settings, then select `Integrations`.
2. Select a `Custom` Integration
3. Copy the unique webhook url listed in the dialog.
4. Navigate to the `update_all.ps1` file in your repository, and update the `$Options` hashtable with the following
4. Update your appveyor environment variable with your unique webhook, and set the name to `gitter_webhook`.
5. Navigate to the `update_all.ps1` file in your repository, and update the `$Options` hashtable with the following
```powershell
Gitter = @{
WebHookUrl = $env:gitter_webhook
}
```
5. Update your appveyor environment variable with your unique webhook, and set the name to `gitter_webhook`.
6. Enjoy your status updates, or frown on failures.
## [History](https://github.com/majkinetor/au/blob/master/AU/Plugins/History.ps1)
Expand Down