Skip to content

Commit

Permalink
Add logic for filtering collected changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Jan 22, 2021
1 parent 6b55504 commit 98f1ed8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
27 changes: 27 additions & 0 deletions eng/common/scripts/GeneralReleaseNotesLogic.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,30 @@ function Parse-ReleaseHighlights ($content)
}
return $releaseHighlights
}

function Filter-ReleaseHighlights ($releaseHighlights)
{
foreach ($key in $releaseHighlights.Keys)
{
$keyInfo = $key.Split(":")
$packageName = $keyInfo[0]
$packageVersion = $keyInfo[1]

$existingPackages = GetExistingPackageVersions -PackageName $packageName

if ()
}
}

function Write-GeneralReleaseNote ($releaseHighlights, $releaseFilePath)
{
$releaseContent = Get-Content $releaseFilePath
$newReleaseContent = @()
$lineNumber = 0

while ($lineNumber -lt $releaseContent.Count)
{
$line = $releaseContent[$lineNumber]

}
}
4 changes: 0 additions & 4 deletions eng/common/scripts/Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,7 @@ function Get-PkgProperties
return $pkgProps
}
}
<<<<<<< HEAD
LogWarning "Failed to retrive Properties for $PackageName"
=======
LogError "Failed to retrive Properties for $PackageName"
>>>>>>> Update Package-Properties.ps1
return $null
}

Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/Prepare-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ if ($LASTEXITCODE -ne 0)
git status
Write-Host "Some changes were made to the repo source" -ForegroundColor Green
Write-Host "Submit a pull request with the necessary changes to the repo" -ForegroundColor Green
}
}

0 comments on commit 98f1ed8

Please sign in to comment.