We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e6fe7 commit 2a387ffCopy full SHA for 2a387ff
ElmahIoDeploymentNotification/notify.ps1
@@ -23,6 +23,9 @@ if ($Env:RELEASE_RELEASENAME) {
23
if (-not $userEmail) {
24
$userEmail = $(git log -1 --pretty=format:'%ae')
25
}
26
+ if (-not $userName) {
27
+ $userName = $(git log -1 --pretty=format:'%an')
28
+ }
29
30
31
$ProgressPreference = "SilentlyContinue"
@@ -38,7 +41,7 @@ $body = @{
38
41
"logId" = $logId
39
42
40
43
Try {
- Invoke-RestMethod -Method Post -Uri $url -Body $body
44
+ Invoke-RestMethod -Method Post -Uri $url -Body ($body | ConvertTo-Json)
45
46
Catch {
47
Write-Error $_.Exception.Message -ErrorAction Continue
0 commit comments