Skip to content

Commit

Permalink
trytofix
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui authored Apr 29, 2024
1 parent 33a5100 commit 659b40d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scripts/Update-Gitbutler.GitButler.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ if ($wingetVersions -contains $latestVersion) {
else {
# Check for existing PRs
Write-Host "Fetching existing PRs"
gh pr list --search "$($wingetPackage) $($latestVersion) in:title draft:false" --state 'open' --json 'title,url' --repo 'microsoft/winget-pkgs' | ConvertFrom-Json
$ExistingOpenPRs = gh pr list --search "$($wingetPackage) $($latestVersion) in:title draft:false" --state 'open' --json 'title,url' --repo 'microsoft/winget-pkgs' | ConvertFrom-Json
gh pr list --search "$($wingetPackage) $($latestVersion) in:title draft:false" --state 'merged' --json 'title,url' --repo 'microsoft/winget-pkgs' | ConvertFrom-Json
$ExistingMergedPRs = gh pr list --search "$($wingetPackage) $($latestVersion) in:title draft:false" --state 'merged' --json 'title,url' --repo 'microsoft/winget-pkgs' | ConvertFrom-Json

$ExistingPRs = $ExistingOpenPRs,$ExistingMergedPRs
Expand Down

0 comments on commit 659b40d

Please sign in to comment.