18
18
[string ]$PackageVersion ,
19
19
20
20
[Parameter (Mandatory = $true )]
21
- [string ]$TypeSpecPRUrl ,
21
+ [string ]$TypeSpecCommitUrl ,
22
22
23
23
[Parameter (Mandatory = $true )]
24
24
[string ]$AuthToken ,
@@ -34,7 +34,6 @@ Import-Module (Join-Path $PSScriptRoot "Generation.psm1") -DisableNameChecking -
34
34
$RepoOwner = " Azure"
35
35
$RepoName = " azure-sdk-for-net"
36
36
$BaseBranch = " main"
37
- $PROwner = " azure-sdk"
38
37
$PRBranch = $BranchName
39
38
40
39
$PRTitle = " Update UnbrandedGeneratorVersion to $PackageVersion "
@@ -43,13 +42,14 @@ This PR updates the UnbrandedGeneratorVersion property in eng/Packages.Data.prop
43
42
44
43
## Details
45
44
46
- - Original TypeSpec PR: $TypeSpecPRUrl
45
+ - TypeSpec commit that triggered this PR: $TypeSpecCommitUrl
47
46
48
47
## Changes
49
48
50
49
- Updated eng/Packages.Data.props UnbrandedGeneratorVersion property
51
50
- Updated eng/packages/http-client-csharp/package.json dependency version
52
51
- Ran npm install to update package-lock.json
52
+ - Ran eng/packages/http-client-csharp/eng/scripts/Generate.ps1 to regenerate test projects
53
53
54
54
This is an automated PR created by the TypeSpec publish pipeline.
55
55
"@
@@ -169,26 +169,17 @@ try {
169
169
170
170
# Commit the changes
171
171
Write-Host " Committing changes..."
172
- if ($propsFileUpdated ) {
173
- git add eng/ Packages.Data.props
174
- }
175
- if ($packageJsonUpdated ) {
176
- git add eng/ packages/ http- client- csharp/ package.json
177
- git add eng/ packages/ http- client- csharp/ package- lock.json
178
- }
172
+ git add eng/ Packages.Data.props
173
+ git add eng/ packages/ http- client- csharp/ package.json
174
+ git add eng/ packages/ http- client- csharp/ package- lock.json
175
+ git add eng/ packages/ http- client- csharp/ generator/ TestProjects/
176
+
179
177
if ($LASTEXITCODE -ne 0 ) {
180
178
throw " Failed to add changes"
181
179
}
182
180
183
181
# Build commit message based on what was updated
184
- $commitMessage = " Update UnbrandedGeneratorVersion to $PackageVersion `n "
185
- if ($propsFileUpdated ) {
186
- $commitMessage += " `n - Updated eng/Packages.Data.props"
187
- }
188
- if ($packageJsonUpdated ) {
189
- $commitMessage += " `n - Updated eng/packages/http-client-csharp/package.json"
190
- $commitMessage += " `n - Ran npm install to update package-lock.json"
191
- }
182
+ $commitMessage = " Update UnbrandedGeneratorVersion to $PackageVersion "
192
183
193
184
git commit - m $commitMessage
194
185
if ($LASTEXITCODE -ne 0 ) {
0 commit comments