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

Commit

Permalink
Merge pull request #156 from AdmiringWorm/bugfix-formatting-not-working
Browse files Browse the repository at this point in the history
(gitter plugin) Fixing an issue where the MessageFormat isn't correctly formatted
  • Loading branch information
majkinetor authored Jun 14, 2018
2 parents 04be280 + f9fa1e3 commit b976947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit b976947

Please sign in to comment.