Skip to content

Commit 7bb5103

Browse files
Fix typos in ps1 scripts (#33923)
Co-authored-by: Lukasz Kokot <[email protected]>
1 parent e37208c commit 7bb5103

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

eng/common/scripts/ChangeLog-Operations.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $CHANGELOG_UNRELEASED_STATUS = "(Unreleased)"
88
$CHANGELOG_DATE_FORMAT = "yyyy-MM-dd"
99
$RecommendedSectionHeaders = @("Features Added", "Breaking Changes", "Bugs Fixed", "Other Changes")
1010

11-
# Returns a Collection of changeLogEntry object containing changelog info for all version present in the gived CHANGELOG
11+
# Returns a Collection of changeLogEntry object containing changelog info for all versions present in the gived CHANGELOG
1212
function Get-ChangeLogEntries {
1313
param (
1414
[Parameter(Mandatory = $true)]
@@ -109,7 +109,7 @@ function Get-ChangeLogEntry {
109109
return $null
110110
}
111111

112-
#Returns the changelog for a particular version as string
112+
#Returns the changelog for a particular version as a string
113113
function Get-ChangeLogEntryAsString {
114114
param (
115115
[Parameter(Mandatory = $true)]
@@ -175,7 +175,7 @@ function Confirm-ChangeLogEntry {
175175
$status = $changeLogEntry.ReleaseStatus.Trim().Trim("()")
176176
if ($status -as [DateTime])
177177
{
178-
LogDebug "Verifying like it's a release build because the changelog entry has a valid date."
178+
LogDebug "Verifying as a release build because the changelog entry has a valid date."
179179
return Confirm-ChangeLogForRelease -changeLogEntry $changeLogEntry -changeLogEntries $changeLogEntries
180180
}
181181

eng/common/scripts/Invoke-DevOpsAPI.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function Get-DevOpsBuilds {
8585
param (
8686
$Organization="azure-sdk",
8787
$Project="internal",
88-
$BranchName, #Should start with 'refs/heads/'
88+
$BranchName, # Should start with 'refs/heads/'
8989
$Definitions, # Comma seperated string of definition IDs
9090
$StatusFilter, # Comma seperated string 'cancelling, completed, inProgress, notStarted'
9191
[ValidateNotNullOrEmpty()]

eng/common/scripts/Package-Properties.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class PackageProps
7777
}
7878

7979
# Takes package name and service Name
80-
# Returns important properties of the package as related to the language repo
80+
# Returns important properties of the package relative to the language repo
8181
# Returns a PS Object with properties @ { pkgName, pkgVersion, pkgDirectoryPath, pkgReadMePath, pkgChangeLogPath }
8282
# Note: python is required for parsing python package properties.
8383
function Get-PkgProperties
@@ -107,7 +107,7 @@ function Get-PkgProperties
107107

108108
# Takes ServiceName and Repo Root Directory
109109
# Returns important properties for each package in the specified service, or entire repo if the serviceName is not specified
110-
# Returns an Table of service key to array values of PS Object with properties @ { pkgName, pkgVersion, pkgDirectoryPath, pkgReadMePath, pkgChangeLogPath }
110+
# Returns a Table of service key to array values of PS Object with properties @ { pkgName, pkgVersion, pkgDirectoryPath, pkgReadMePath, pkgChangeLogPath }
111111
function Get-AllPkgProperties ([string]$ServiceDirectory = $null)
112112
{
113113
$pkgPropsResult = @()
@@ -135,7 +135,7 @@ function Get-AllPkgProperties ([string]$ServiceDirectory = $null)
135135
}
136136

137137
# Given the metadata url under https://github.com/Azure/azure-sdk/tree/main/_data/releases/latest,
138-
# the function will return the csv metadata back as part of response.
138+
# the function will return the csv metadata back as part of the response.
139139
function Get-CSVMetadata ([string]$MetadataUri=$MetadataUri)
140140
{
141141
$metadataResponse = Invoke-RestMethod -Uri $MetadataUri -method "GET" -MaximumRetryCount 3 -RetryIntervalSec 10 | ConvertFrom-Csv
@@ -144,7 +144,7 @@ function Get-CSVMetadata ([string]$MetadataUri=$MetadataUri)
144144

145145
function Get-PkgPropsForEntireService ($serviceDirectoryPath)
146146
{
147-
$projectProps = @() # Properties from very project inthe service
147+
$projectProps = @() # Properties from every project in the service
148148
$serviceDirectory = $serviceDirectoryPath -replace '^.*[\\/]+sdk[\\/]+([^\\/]+).*$', '$1'
149149

150150
if (!$GetPackageInfoFromRepoFn -or !(Test-Path "Function:$GetPackageInfoFromRepoFn"))

eng/common/scripts/Update-ChangeLog.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if ($ChangeLogEntries.Contains($Version))
7575
{
7676
if ($ChangeLogEntries[$Version].ReleaseStatus -eq $ReleaseStatus)
7777
{
78-
LogDebug "Version [$Version] is already present in change log with specificed ReleaseStatus [$ReleaseStatus]. No Change made."
78+
LogDebug "Version [$Version] is already present in change log with specified ReleaseStatus [$ReleaseStatus]. No Change made."
7979
exit(0)
8080
}
8181

@@ -102,7 +102,7 @@ LogDebug "The latest release note entry in the changelog is for version [$($Late
102102

103103
$LatestsSorted = [AzureEngSemanticVersion]::SortVersionStrings(@($LatestVersion, $Version))
104104
if ($LatestsSorted[0] -ne $Version) {
105-
LogWarning "Version [$Version] is older than the latestversion [$LatestVersion] in the changelog. Consider using a more recent version."
105+
LogWarning "Version [$Version] is older than the latest version [$LatestVersion] in the changelog. Consider using a more recent version."
106106
}
107107

108108
if ($ReplaceLatestEntryTitle)

eng/common/scripts/artifact-metadata-parsing.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$SDIST_PACKAGE_REGEX = "^(?<package>.*)\-(?<versionstring>$([AzureEngSemanticVersion]::SEMVER_REGEX))"
44

5-
# Posts a github release for each item of the pkgList variable. SilentlyContinue
5+
# Posts a github release for each item of the pkgList variable. Silently continue
66
function CreateReleases($pkgList, $releaseApiUrl, $releaseSha) {
77
foreach ($pkgInfo in $pkgList) {
88
Write-Host "Creating release $($pkgInfo.Tag)"
@@ -11,7 +11,7 @@ function CreateReleases($pkgList, $releaseApiUrl, $releaseSha) {
1111
if ($pkgInfo.ReleaseNotes -ne $null) {
1212
$releaseNotes = $pkgInfo.ReleaseNotes
1313
}
14-
# As github api limit the body param length with 125000 characters, we have to truncate the release note if needed.
14+
# As github api limits the body param length to 125000 characters, we have to truncate the release note if needed.
1515
if ($releaseNotes.Length -gt 124996) {
1616
$releaseNotes = $releaseNotes.SubString(0, 124996) + " ..."
1717
}
@@ -175,7 +175,7 @@ function VerifyPackages($artifactLocation, $workingDirectory, $apiUrl, $releaseS
175175
return $results
176176
}
177177

178-
# given a set of tags that we want to release, we need to ensure that if they already DO exist.
178+
# given a set of tags that we want to release, we need to ensure they DO already exist.
179179
# if they DO exist, quietly exit if the commit sha of the artifact matches that of the tag
180180
# if the commit sha does not match, exit with error and report both problem shas
181181
function CheckArtifactShaAgainstTagsList($priorExistingTagList, $releaseSha, $apiUrl, $continueOnError) {

eng/common/scripts/git-branch-push.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ else
6666
exit $LASTEXITCODE
6767
}
6868
}
69-
# Checkout to $PRBranch, create new one if not exists.
69+
# Checkout to $PRBranch, create new one if it does not exist.
7070
git show-ref --verify --quiet refs/heads/$PRBranchName
7171
if ($LASTEXITCODE -eq 0) {
7272
Write-Host "git checkout $PRBranchName."

0 commit comments

Comments
 (0)