Skip to content

Commit a8336cf

Browse files
author
Kyle Zhang
committed
Refactor update changelog and version scripts to simplify import statements for clarity
1 parent 771a029 commit a8336cf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

eng/scripts/update-changelog-content.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Requires -Version 7.0
12
<#
23
.SYNOPSIS
34
Updates the CHANGELOG.md for a specific Azure SDK package.
@@ -31,8 +32,7 @@ param (
3132
)
3233

3334
# Import common helpers
34-
. (Join-Path (Join-Path (Join-Path (Join-Path (Join-Path $PSScriptRoot "..") "common") "scripts") "Helpers") "CommandInvocation-Helpers.ps1")
35-
35+
. (Join-Path $PSScriptRoot ".." "common" "scripts" "Helpers" "CommandInvocation-Helpers.ps1")
3636
# Main execution
3737
try {
3838
# Validate SDK repository path

eng/scripts/update-version.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Requires -Version 7.0
12
<#
23
.SYNOPSIS
34
Updates the version for a specific Azure SDK package.
@@ -50,7 +51,7 @@ param (
5051
)
5152

5253
# Import common helpers
53-
. (Join-Path (Join-Path (Join-Path (Join-Path (Join-Path $PSScriptRoot "..") "common") "scripts") "Helpers") "CommandInvocation-Helpers.ps1")
54+
. (Join-Path $PSScriptRoot ".." "common" "scripts" "Helpers" "CommandInvocation-Helpers.ps1")
5455

5556
# Validate that at least one of ReleaseType or Version is provided
5657
if (-not $ReleaseType -and -not $Version) {

0 commit comments

Comments
 (0)