Skip to content

Commit

Permalink
Merge pull request #334 from fflaten/fix-teamscheck
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bader authored Jul 14, 2024
2 parents 5be122d + 80604f4 commit 085b426
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions powershell/public/Invoke-Maester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ Function Invoke-Maester {

# Optional. The Teams team where the test results should be posted.
# To get the TeamId, right-click on the channel in Teams and select 'Get link to channel'. Use the value of groupId. e.g. ?groupId=<TeamId>
[string] $TeamId = $null,
[string] $TeamId,

# Optional. The channel where the message should be posted. e.g. 19%3A00000000000000000000000000000000%40thread.tacv2
# To get the TeamChannelId, right-click on the channel in Teams and select 'Get link to channel'. Use the value found between channel and the channel name. e.g. /channel/<TeamChannelId>/my%20channel
[string] $TeamChannelId = $null,
[string] $TeamChannelId,

# Skip the graph connection check.
# This is used for running tests that does not require a graph connection.
Expand Down Expand Up @@ -233,7 +233,7 @@ Function Invoke-Maester {

$isMail = $null -ne $MailRecipient

$isTeamsChannelMessage = (($null -ne $TeamId) -or ($null -ne $TeamChannelId))
$isTeamsChannelMessage = -not ([String]::IsNullOrEmpty($TeamId) -or [String]::IsNullOrEmpty($TeamChannelId))

if ($SkipGraphConnect) {
Write-Host "🔥 Skipping graph connection check" -ForegroundColor Yellow
Expand Down

0 comments on commit 085b426

Please sign in to comment.