-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,008 changed files
with
60,806 additions
and
68,781 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Security Policy | ||
|
||
## Reporting a Vulnerability | ||
|
||
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) <[email protected]>. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the [Security TechCenter](https://www.microsoft.com/msrc/faqs-report-an-issue). | ||
|
||
Please do not open issues for anything you think might have a security implication. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# given a CHANGELOG.md file, extract the relevant info we need to decorate a release | ||
param ( | ||
[Parameter(Mandatory = $true)] | ||
[String]$ChangeLogLocation | ||
) | ||
|
||
$RELEASE_TITLE_REGEX = "(?<releaseNoteTitle>^\#+.*(?<version>\b\d+\.\d+\.\d+([^0-9\s][^\s:]+)?))" | ||
|
||
$releaseNotes = @{} | ||
$contentArrays = @{} | ||
if ($ChangeLogLocation.Length -eq 0) | ||
{ | ||
return $releaseNotes | ||
} | ||
|
||
try | ||
{ | ||
$contents = Get-Content $ChangeLogLocation | ||
|
||
# walk the document, finding where the version specifiers are and creating lists | ||
$version = "" | ||
foreach($line in $contents){ | ||
if ($line -match $RELEASE_TITLE_REGEX) | ||
{ | ||
$version = $matches["version"] | ||
$contentArrays[$version] = @() | ||
} | ||
|
||
$contentArrays[$version] += $line | ||
} | ||
|
||
# resolve each of discovered version specifier string arrays into real content | ||
foreach($key in $contentArrays.Keys) | ||
{ | ||
$releaseNotes[$key] = New-Object PSObject -Property @{ | ||
ReleaseVersion = $key | ||
ReleaseContent = $contentArrays[$key] -join [Environment]::NewLine | ||
} | ||
} | ||
} | ||
catch | ||
{ | ||
Write-Host "Error parsing $ChangeLogLocation." | ||
Write-Host $_.Exception.Message | ||
} | ||
|
||
return $releaseNotes |
Oops, something went wrong.