File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2828 $Organization ,
2929
3030 # The Project
31- [Parameter (Mandatory , ValueFromPipelineByPropertyName )]
31+ [Parameter (ValueFromPipelineByPropertyName )]
3232 [string ]
3333 $Project ,
3434
7373 process {
7474 # region Check if Repository Already Exists
7575 $targetName = if ($RepositoryName ) { $RepositoryName }
76- else { " ${Organization} -${Project} -${FeedID} " }
76+ elseif ($Project ) { " ${Organization} -${Project} -${FeedID} " }
77+ else { " ${Organization} -${FeedID} " }
7778 $targetSource = if ($RepositoryUrl ) { $RepositoryUrl }
78- else { " https://pkgs.dev.azure.com/$Organization /$Project /_packaging/$FeedID /nuget/v2" }
79+ elseif ($Project ) { " https://pkgs.dev.azure.com/$Organization /$Project /_packaging/$FeedID /nuget/v2" }
80+ else { " https://pkgs.dev.azure.com/$Organization /_packaging/$FeedID /nuget/v2" }
7981 $psRepoExists = $psRepos |
8082 Where-Object {
8183 $_.Name -eq $targetName -or
You can’t perform that action at this time.
0 commit comments