mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 18:52:18 +01:00
Merged PR 57105: setup log analytics for sql01 prod
setup log analytics for sql01 prod
This commit is contained in:
@@ -7,6 +7,8 @@ class Repository {
|
||||
[string] $WebUrl = ""
|
||||
[string] $LastPRDate = ""
|
||||
[string] $LastPRName = ""
|
||||
[string] $LastPRCreatedBy = ""
|
||||
[string] $LastPRReviewers = ""
|
||||
[string] $LastPRUrl = ""
|
||||
}
|
||||
|
||||
@@ -29,7 +31,7 @@ foreach ($repo in $repos)
|
||||
$repository.DefaultBranch = $repo.defaultBranch
|
||||
$repository.IsDisabled = $repo.isDisabled
|
||||
$repository.WebUrl = $repo.webUrl
|
||||
|
||||
|
||||
if ($true -ne $repo.isDisabled)
|
||||
{
|
||||
$lastPr = az repos pr list --project "survey software" --repository $repo.name --organization "https://dev.azure.com/effectory/" --status completed --top 1 | ConvertFrom-Json | Select-Object
|
||||
@@ -39,7 +41,9 @@ foreach ($repo in $repos)
|
||||
$repository.LastPRDate = $lastPr.creationDate
|
||||
$repository.LastPRName = $lastPr.title
|
||||
$repository.LastPRUrl = $lastPr.url
|
||||
}
|
||||
$repository.LastPRCreatedBy = $lastPr.createdBy.displayName
|
||||
$repository.LastPRReviewers = $lastPr.reviewers | join-string -property displayName -Separator ','
|
||||
}
|
||||
}
|
||||
|
||||
$Result += $repository
|
||||
|
||||
Reference in New Issue
Block a user