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 25, 2021
1 parent 5a133ad commit fc25d78
Show file tree
Hide file tree
Showing 3 changed files with 29 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
3 changes: 2 additions & 1 deletion eng/common/scripts/Prepare-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ if (!$ReleaseDate)
$currentDate = Get-Date
$thisMonthReleaseDate = Get-ReleaseDay((Get-Date -Day 1));
$nextMonthReleaseDate = Get-ReleaseDay((Get-Date -Day 1).AddMonths(1));

if ($thisMonthReleaseDate -ge $currentDate)
{
# On track for this month release
Expand Down Expand Up @@ -105,4 +106,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 fc25d78

Please sign in to comment.