Skip to content

Commit c6b82ee

Browse files
Update references from master to main (Azure#15977)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
1 parent d9066a2 commit c6b82ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

eng/common/scripts/Verify-Links.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
List of http status codes that count as broken links. Defaults to 400, 401, 404, SocketError.HostNotFound = 11001, SocketError.NoData = 11004.
2828
2929
.PARAMETER branchReplaceRegex
30-
Regex to check if the link needs to be replaced. E.g. ^(https://github.com/.*/(?:blob|tree)/)master(/.*)$
30+
Regex to check if the link needs to be replaced. E.g. ^(https://github.com/.*/(?:blob|tree)/)main(/.*)$
3131
3232
.PARAMETER branchReplacementName
3333
The substitute branch name or SHA commit.

eng/common/scripts/update-docs-metadata.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ function GetAdjustedReadmeContent($pkgInfo){
6767
$fileContent = $fileContent -replace $titleRegex, "`${0} - Version $($pkgInfo.PackageVersion) `n"
6868
$foundTitle = $matches["filetitle"]
6969
}
70-
# Replace github master link with release tag.
70+
# Replace github main link with release tag.
7171
$ReplacementPattern = "`${1}$($pkgInfo.Tag)"
7272
$fileContent = $fileContent -replace $releaseReplaceRegex, $ReplacementPattern
73-
73+
7474
$header = "---`ntitle: $foundTitle`nkeywords: Azure, $Language, SDK, API, $($pkgInfo.PackageId), $service`nauthor: maggiepint`nms.author: magpint`nms.date: $date`nms.topic: article`nms.prod: azure`nms.technology: azure`nms.devlang: $Language`nms.service: $service`n---`n"
7575

7676
if ($fileContent) {
@@ -101,7 +101,7 @@ foreach ($config in $targets) {
101101
if ($pkgsFiltered) {
102102
Write-Host "Given the visible artifacts, $($config.mode) Readme updates against $($config.path_to_config) will be processed for the following packages."
103103
Write-Host ($pkgsFiltered | % { $_.PackageId + " " + $_.PackageVersion })
104-
104+
105105
foreach ($packageInfo in $pkgsFiltered) {
106106
$readmeName = "$($packageInfo.DocsReadMeName.ToLower())-readme${suffix}.md"
107107
$readmeFolder = Join-Path $DocRepoLocation $config.content_folder
@@ -115,12 +115,12 @@ foreach ($config in $targets) {
115115
if ($packageInfo.ReadmeContent) {
116116
$adjustedContent = GetAdjustedReadmeContent -pkgInfo $packageInfo
117117
}
118-
118+
119119
if ($adjustedContent) {
120120
try {
121121
Push-Location $DocRepoLocation
122122
Set-Content -Path $readmeLocation -Value $adjustedContent -Force
123-
123+
124124
Write-Host "Updated readme for $readmeName."
125125
} catch {
126126
Write-Host $_

0 commit comments

Comments
 (0)