Skip to content

Commit

Permalink
Check user or org (#3675)
Browse files Browse the repository at this point in the history
Fixes #3573

---------

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Sep 23, 2024
1 parent 140595c commit 25544bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BC.HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Get-ContainerHelperConfig {
"useWinRmSession" = "allow" # allow, always, never
"addTryCatchToScriptBlock" = $true
"killPsSessionProcess" = $false
"usePrereleaseAlTool" = $true
"usePrereleaseAlTool" = $false
"useVolumes" = $false
"useVolumeForMyFolder" = $false
"use7zipIfAvailable" = $true
Expand Down
9 changes: 8 additions & 1 deletion NuGet/NuGetFeedClass.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,14 @@ class NuGetFeed {
"Authorization" = "Bearer $($this.token)"
}
}
$queryUrl = "https://api.github.com/orgs/$organization/packages?package_type=nuget&per_page=100&page="
$orgMetadata = Invoke-RestMethod -Method GET -Uri "https://api.github.com/users/$organization"
if ($orgMetadata.type -eq 'Organization') {
$orgType = 'orgs'
}
else {
$orgType = 'users'
}
$queryUrl = "https://api.github.com/$orgType/$organization/packages?package_type=nuget&per_page=100&page="
$page = 1
Write-Host -ForegroundColor Yellow "Search package using $queryUrl$page"
$matching = @()
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
6.0.23
Issue 3573 GitHub NuGet Handling fails for User Feeds

6.0.22
Issue #3660 Error about missing 'azuredevops' property when using Compile-AppWithBcCompilerFolder
Expand Down

0 comments on commit 25544bf

Please sign in to comment.