From 0633103464a4a4161f3dc9c8248399a5190d714c Mon Sep 17 00:00:00 2001 From: Jurjen Ladenius Date: Tue, 28 Jan 2025 10:33:45 +0000 Subject: [PATCH] Merged PR 56816: Added policy bypass reason to pullrequest overview #106056 Added policy bypass reason to pullrequest overview #106056 Related work items: #106056 --- Powershell/Lists/DevOps/PullRequests.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Powershell/Lists/DevOps/PullRequests.ps1 b/Powershell/Lists/DevOps/PullRequests.ps1 index 498e579..fc4d1d6 100644 --- a/Powershell/Lists/DevOps/PullRequests.ps1 +++ b/Powershell/Lists/DevOps/PullRequests.ps1 @@ -11,6 +11,7 @@ class PullRequest { [string] $PullRequestReviewers = "" [string] $PullRequestStatus = "" [string] $PullRequestWebUrl = "" + [string] $CompletionBypassReason = "" } [string] $date = Get-Date -Format "yyyy-MM-dd HHmm" @@ -42,6 +43,7 @@ foreach ($repo in $repos) $pullRequest.PullRequestReviewers = $pr.reviewers | join-string -property displayName -Separator ',' $pullRequest.PullRequestStatus = $pr.status $pullRequest.PullRequestWebUrl = "$($repo.webUrl)/pullrequest/$($pr.pullRequestId)" + $pullRequest.CompletionBypassReason = $pr.completionOptions.bypassReason $Result += $pullRequest } @@ -51,5 +53,4 @@ foreach ($repo in $repos) Write-Host "========================================================================================================================================================================" -Write-Host "Done." - +Write-Host "Done." \ No newline at end of file